Observability
Tracing
Distributed tracing with W3C Trace Context.
Usage#
typescript
import { Tracer } from '@AxilJS/observability'
const tracer = new Tracer({ serviceName: 'my-api' })
await tracer.trace('user.create', async (span) => {
span.setAttribute('user.email', email)
return await createUser(data)
})Propagation uses the W3C traceparent header.