forked from denoland/deno
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #710 from denoland/main
Create a new pull request by comparing changes across two branches
- Loading branch information
Showing
44 changed files
with
2,301 additions
and
1,789 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
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 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 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 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 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 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 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 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 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 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 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 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"); | ||
* | ||
|
@@ -1301,20 +1300,43 @@ declare namespace Deno { | |
*/ | ||
export namespace telemetry { | ||
/** | ||
* A SpanExporter compatible with OpenTelemetry.js | ||
* https://open-telemetry.github.io/opentelemetry-js/interfaces/_opentelemetry_sdk_trace_base.SpanExporter.html | ||
* A TracerProvider compatible with OpenTelemetry.js | ||
* https://open-telemetry.github.io/opentelemetry-js/interfaces/_opentelemetry_api.TracerProvider.html | ||
* | ||
* This is a singleton object that implements the OpenTelemetry | ||
* TracerProvider interface. | ||
* | ||
* @category Telemetry | ||
* @experimental | ||
*/ | ||
export class SpanExporter {} | ||
// deno-lint-ignore no-explicit-any | ||
export const tracerProvider: any; | ||
|
||
/** | ||
* A ContextManager compatible with OpenTelemetry.js | ||
* https://open-telemetry.github.io/opentelemetry-js/interfaces/_opentelemetry_api.ContextManager.html | ||
* | ||
* This is a singleton object that implements the OpenTelemetry | ||
* ContextManager interface. | ||
* | ||
* @category Telemetry | ||
* @experimental | ||
*/ | ||
// deno-lint-ignore no-explicit-any | ||
export const contextManager: any; | ||
|
||
/** | ||
* A MeterProvider compatible with OpenTelemetry.js | ||
* https://open-telemetry.github.io/opentelemetry-js/interfaces/_opentelemetry_api.MeterProvider.html | ||
* | ||
* This is a singleton object that implements the OpenTelemetry | ||
* MeterProvider interface. | ||
* | ||
* @category Telemetry | ||
* @experimental | ||
*/ | ||
export class ContextManager {} | ||
// deno-lint-ignore no-explicit-any | ||
export const meterProvider: any; | ||
|
||
export {}; // only export exports | ||
} | ||
|
Oops, something went wrong.