-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(unstable): no config npm:@opentelemetry/api integration (#27541)
After this PR, one does not need to import `jsr:@deno/otel` anymore.
- Loading branch information
1 parent
5eff7df
commit 00719ec
Showing
10 changed files
with
23 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1268,16 +1268,15 @@ declare namespace Deno { | |
* OpenTelemetry API. This is done using the official OpenTelemetry package | ||
* for JavaScript: | ||
* [`npm:@opentelemetry/api`](https://opentelemetry.io/docs/languages/js/). | ||
* Deno integrates with this package to provide trace context propagation | ||
* between native Deno APIs (like `Deno.serve` or `fetch`) and custom user | ||
* code. Deno also provides APIs that allow exporting custom telemetry data | ||
* via the same OTLP channel used by the Deno runtime. This is done using the | ||
* [`jsr:@deno/otel`](https://jsr.io/@deno/otel) package. | ||
* Deno integrates with this package to provide tracing, metrics, and trace | ||
* context propagation between native Deno APIs (like `Deno.serve` or `fetch`) | ||
* and custom user code. Deno automatically registers the providers with the | ||
* OpenTelemetry API, so users can start creating custom traces, metrics, and | ||
* logs without any additional setup. | ||
* | ||
* @example Using OpenTelemetry API to create custom traces | ||
* ```ts,ignore | ||
* import { trace } from "npm:@opentelemetry/api@1"; | ||
* import "jsr:@deno/[email protected]/register"; | ||
* | ||
* const tracer = trace.getTracer("example-tracer"); | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
// Copyright 2018-2025 the Deno authors. MIT license. | ||
|
||
import { trace } from "npm:@opentelemetry/[email protected]"; | ||
import "jsr:@deno/[email protected]/register"; | ||
|
||
const tracer = trace.getTracer("example-tracer"); | ||
|
||
|