Observability

Tracing

Distributed tracing with W3C Trace Context.

1 min readDocumentationEdit this page

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.

Help improve the documentation

AxilJS is open source and documentation improvements are welcome.

AxilJS DocumentationMIT License · Built by SyntaxilitY