https://github.com/cloudydeno/opentelemetry
WIP module for instrumenting Deno programs with OpenTelemetry, transmitting traces and metrics in a standard way.
https://github.com/cloudydeno/opentelemetry
opentelemetry
Last synced: over 1 year ago
JSON representation
WIP module for instrumenting Deno programs with OpenTelemetry, transmitting traces and metrics in a standard way.
- Host: GitHub
- URL: https://github.com/cloudydeno/opentelemetry
- Owner: cloudydeno
- License: mit
- Created: 2021-05-02T08:08:54.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-04-17T20:50:22.000Z (over 1 year ago)
- Last Synced: 2025-04-24T03:45:53.437Z (over 1 year ago)
- Topics: opentelemetry
- Language: JavaScript
- Homepage: https://jsr.io/@cloudydeno/opentelemetry
- Size: 636 KB
- Stars: 14
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# `@cloudydeno/opentelemetry`
A Deno-oriented build of [opentelemetry-js](https://github.com/open-telemetry/opentelemetry-js),
with extra Deno-specific integrations.
* [Published on JSR](https://jsr.io/@cloudydeno/opentelemetry) since `v0.10.0`.
* Also [published to `/x/`](https://deno.land/x/observability) (with one JSR dependency).
## example usage
```ts
// set up the SDK:
import 'jsr:@cloudydeno/opentelemetry/register';
// Can also use `deno --unstable-otel` instead of the /register import.
// Wrap an async function in a span:
import { traceAsyncFunc } from 'jsr:@cloudydeno/opentelemetry/instrumentation/async.ts';
const doTheThing = traceAsyncFunction('DoTheThing', async () => {
const resp = await fetch(...);
/* ... */
});
await doTheThing();
```