Skip to content

WIP module for instrumenting Deno programs with OpenTelemetry, transmitting traces and metrics in a standard way.

Notifications You must be signed in to change notification settings

cloudydeno/opentelemetry

Repository files navigation

CI

@cloudydeno/opentelemetry

A Deno-oriented build of opentelemetry-js, with extra Deno-specific integrations.

example usage

// 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();

About

WIP module for instrumenting Deno programs with OpenTelemetry, transmitting traces and metrics in a standard way.

Topics

Resources

Stars

Watchers

Forks