npm.io
8.1.9 • Published 1 week ago

@ariestools/telemetry

Licence
LGPL-3.0-only
Version
8.1.9
Deps
0
Size
46 kB
Vulns
0
Weekly
0

logo

@ariestools/telemetry

npm license

OpenTelemetry span helpers and console span exporter for XY Labs libraries

Install

pnpm add @ariestools/telemetry @opentelemetry/api

@opentelemetry/api is a required peer dependency. Install it in your app so tracing context is shared with the rest of your process.

Usage

import { span, spanAsync, createXyConsoleSpanExporter } from '@ariestools/telemetry'

const result = span('work', () => doWork())

Deprecated re-exports from @ariestools/sdk (and @ariestools/sdk/telemetry) still work during the migration window; prefer importing from this package.

License

See the LICENSE file for license rights and limitations (LGPL-3.0-only).

Keywords