17 lines
340 B
Markdown
17 lines
340 B
Markdown
# @goodgo/tracing
|
|
|
|
OpenTelemetry tracing setup for distributed tracing.
|
|
|
|
## Usage
|
|
|
|
```typescript
|
|
import { initTracing } from '@goodgo/tracing';
|
|
|
|
// Initialize tracing at application startup
|
|
initTracing({
|
|
serviceName: 'iam-service',
|
|
jaegerEndpoint: process.env.JAEGER_ENDPOINT,
|
|
enabled: process.env.TRACING_ENABLED === 'true',
|
|
});
|
|
```
|