0.209.0
💥 Breaking Changes
- fix(opentelemetry-sdk-node): default to otlp if OTEL_METRICS_EXPORTER is empty #6092 @jeengbe
- (user-facing):
NodeSDKnow automatically instantiates a Metrics SDK. To disable it, set environment varaibleOTEL_METRICS_EXPORTER=none.
- (user-facing):
🚀 Features
- feat(exporter-prometheus): support withoutScopeInfo option #5993 @cjihrig
- refactor(configuration): improvements on package #6101 @maryliag
- feat(configuration): set logger provider exporter type from env variable #6104 @maryliag
- feat(configuration): set meter provider exporter type from env variable #6105 @maryliag
- feat(configuration): set tracer provider exporter type from env variables #6106 @maryliag
- feat(configuration): set meter provider exporter type from env variable #6105 @maryliag
- refactor(configuration): throw warning and not error for invalid files #6124 @maryliag
- refactor(configuration): dont have a default value for node resource detectors #6131 @maryliag
- feat(configuration): doesnt set meter,tracer,logger provider by default #6130 @maryliag
- feat(opentelemetry-sdk-node): set instrumentation and propagators for experimental start #6148 @maryliag
- refactor(configuration): set console exporter as empty object #6164 @maryliag
- feat(instrumentation-http, instrumentation-fetch, instrumentation-xml-http-request): support "QUERY" as a known HTTP method
🐛 Bug Fixes
- fix(instrumentation-grpc): attach correct name to diag message #6097 @pichlermarc
- fix(configuration): merge service name from OTEL_SERVICE_NAME instead of replacing all resource attributes #6162 @maryliag
- fix(configuration): combine resource attributes and attributes list correctly #6166 @maryliag
- fix(sdk-node): add missing direct dependency to @opentelemetry/context-async-hooks #6189 @pichlermarc
- fix(instrumentation-fetch): use feature detection for browser environment #6200 @overbalance
- fix(otlp-exporter-base): ensure retry on network errors during HTTP export #6147 @jsokol805
📚 Documentation
🏠 Internal
- refactor(opentelemetry-sdk-node): simplify calculation of traceExportersList #6132 @cjihrig
- refactor(instrumentation): combine filter() calls in _onRequire #6142 @cjihrig
- test(instrumentation-http): make timing dependent test more robust #6144 @cjihrig
- refactor(opentelemetry-sdk-node): simplify calculation of validPropagators #6143 @cjihrig
- test(instrumentation-http): replace uses of deprecated abort() #6149 @cjihrig
- refactor(configuration): simplify boolean check #6158 @cjihrig
- chore: disallow constructor parameter property syntax #6187 @legendecas
- chore(instrumentation-grpc): use local protobuf-ts plugin instead of buf.build remote #6202 @overbalance
- test(otlp-transformer): add benchmark for ProtobufTraceSerializer #6226 @overbalance
- chore(backcompat): fix backcompat tests and tsconfig cleanup #6232 @overbalance
- refactor(instrumentation-http): refactor getIncomingRequestAttributes() to reduce work #6207 @cjihrig
- refactor(api-logs,instrumentation-fetch): remove platform-specific globalThis, use globalThis directly #6208 @overbalance
- test(otlp-transformer): remove obsolete compat code from toBase64() #6242 @cjihrig
- refactor(otlp-exporter-base): simplify isExportHTTPErrorRetryable() #6249 @cjihrig
- refactor(sdk-logs): remove wrapper Promise in _flushOneBatch() #6253 @cjihrig