opentelemetry-js-api
opentelemetry-js-api copied to clipboard
OpenTelemetry Javascript API
Early draft of a SugaredTracer, intended as basis for discussions and implementation ideas. cc @cartermp Signed-off-by: secustor
We can close this issue since the question is addressed and we can create new issues for proposed convenience APIs _Originally posted by @dyladan in https://github.com/open-telemetry/opentelemetry-js-api/issues/164#issuecomment-1176500245_ I propose we add...
This PR exposes the `shutdown` and `forcedFlush` functions defined by the [TraceProvider specs](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/sdk.md#shutdown). Providing these methods allow to gracefully shutdown instrumentations without data loss. Currently this is only possible with...
In opentelemetry js, we can get the spanContext and the corresponding trace Id. But with the given trace Id, we are not able to perform operations like getting the duration...
This adds attach/detach methods to context API as they are specified in [optional global operations](https://github.com/open-telemetry/opentelemetry-specification/blob/b46bcab5fb709381f1fd52096a19541370c7d1b3/specification/context/context.md#optional-global-operations). Non-breaking for users as this is an additive change. Breaking for SDK implementers. SDKs must...
The AWS Lambda Plugin as the requirement to flush data at the time the invocation of the function is done. See https://github.com/open-telemetry/opentelemetry-js-contrib/blob/b128dae70cf5723162ef72ed0ed83924f3edf4dc/plugins/node/opentelemetry-instrumentation-aws-lambda/src/aws-lambda.ts#L199-L206 As once can see this creates a binding...
There is currently no easy way to get the basic OpenTelemetry constructs - tracer, span, context - without uptaking the whole API tree including diag logging, etc. For implementations where...
We are currently preparing for the 1.1 release, but for features which did not make it into the release I believe we should have a more formal answer for when...
Not sure if this ought to be labelled a "bug" or "discussion". I noticed a discrepancy between [span.recordException](https://github.com/open-telemetry/opentelemetry-js/blob/7750282034ee58bdd257446c2970f01307d7522a/packages/opentelemetry-tracing/src/Span.ts#L189) and the [spec](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#record-exception) Specifically, this part (current implementation does not allow passing...
Fixes #102 Draft until tests are completed