fix: wrong order for telemetery init (#2078)

This commit is contained in:
Daniel Salazar
2025-12-01 20:18:03 -08:00
committed by GitHub
parent 3c579dcc0d
commit d3beac0518
@@ -38,13 +38,13 @@ class TelemetryService extends BaseService {
[SemanticResourceAttributes.SERVICE_VERSION]: '0.1.0',
}));
const exporter = this.#getConfiguredExporter();
this.exporter = exporter;
const processor = new BatchSpanProcessor(exporter);
const provider = new NodeTracerProvider({ resource,
spanProcessors: [
processor,
] });
const exporter = this.#getConfiguredExporter();
this.exporter = exporter;
provider.register();