diff options
| author | Shardul Natu <[email protected]> | 2025-08-19 16:39:59 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-19 23:39:59 +0000 |
| commit | faff1c2ec73929e337c4035cf2d297c79e84a949 (patch) | |
| tree | 09659a6b8cc5bf18d0180048a3589de0035c1b94 /packages/core/src | |
| parent | a01d411c5a7140e289f1f3b003d9d4bb9bfc071c (diff) | |
update(opentelemetry): Upgrade OTel dependencies (#6540)
Co-authored-by: Shnatu <[email protected]>
Diffstat (limited to 'packages/core/src')
| -rw-r--r-- | packages/core/src/telemetry/sdk.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/core/src/telemetry/sdk.ts b/packages/core/src/telemetry/sdk.ts index 3fbecaa9..f1f67835 100644 --- a/packages/core/src/telemetry/sdk.ts +++ b/packages/core/src/telemetry/sdk.ts @@ -14,7 +14,7 @@ import { OTLPMetricExporter as OTLPMetricExporterHttp } from '@opentelemetry/exp import { CompressionAlgorithm } from '@opentelemetry/otlp-exporter-base'; import { NodeSDK } from '@opentelemetry/sdk-node'; import { SemanticResourceAttributes } from '@opentelemetry/semantic-conventions'; -import { Resource } from '@opentelemetry/resources'; +import { resourceFromAttributes } from '@opentelemetry/resources'; import { BatchSpanProcessor, ConsoleSpanExporter, @@ -78,7 +78,7 @@ export function initializeTelemetry(config: Config): void { return; } - const resource = new Resource({ + const resource = resourceFromAttributes({ [SemanticResourceAttributes.SERVICE_NAME]: SERVICE_NAME, [SemanticResourceAttributes.SERVICE_VERSION]: process.version, 'session.id': config.getSessionId(), @@ -153,7 +153,7 @@ export function initializeTelemetry(config: Config): void { sdk = new NodeSDK({ resource, spanProcessors: [new BatchSpanProcessor(spanExporter)], - logRecordProcessor: new BatchLogRecordProcessor(logExporter), + logRecordProcessors: [new BatchLogRecordProcessor(logExporter)], metricReader, instrumentations: [new HttpInstrumentation()], }); |
