@ariestools/telemetry
v8.1.7
Published
OpenTelemetry span helpers and console span exporter for XY Labs TypeScript/JavaScript libraries
Readme
@ariestools/telemetry
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).
