mirror of
https://github.com/HeyPuter/puter.git
synced 2026-09-23 21:56:57 +00:00
fix: wrong order for telemetery init (#2078)
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user