github open-telemetry/opentelemetry-js experimental/v0.54.0

latest release: v1.27.0
15 hours ago

0.54.0

💥 Breaking Change

  • feat(exporter--otlp-)!: rewrite exporter config logic for testability #4971 @pichlermarc
    • (user-facing) getDefaultUrl was intended for internal use has been removed from all exporters
    • (user-facing) getUrlFromConfig was intended for internal use and has been removed from all exporters
    • (user-facing) hostname was intended for internal use and has been removed from all exporters
    • (user-facing) url was intended for internal use and has been removed from all exporters
    • (user-facing) timeoutMillis was intended for internal use and has been removed from all exporters
    • (user-facing) onInit was intended for internal use and has been removed from all exporters
  • feat(otlp-exporter-base)!: do not export functions that are intended for internal use #4971 @pichlermarc
    • Drops the following functions and types that were intended for internal use from the package exports:
      • parseHeaders
      • appendResourcePathToUrl
      • appendResourcePathToUrlIfNeeded
      • configureExporterTimeout
      • invalidTimeout
  • feat(instrumentation-http)!: remove long deprecated options #5085 @pichlermarc
    • ignoreIncomingPaths has been removed, use the more versatile ignoreIncomingRequestHook instead.
    • ignoreOutgoingUrls has been removed, use the more versatile ignoreOutgoingRequestHook instead.
    • isIgnored utility function was intended for internal use and has been removed without replacement.

🚀 (Enhancement)

  • feat(api-logs): Add delegating no-op logger provider #4861 @hectorhdzg
  • feat(instrumentation-http): Add support for Semantic Conventions 1.27+ #4940 #4978 #5026 @dyladan
    • Applies to client and server spans and metrics
    • Generate spans and metrics compliant with Semantic Conventions 1.27+ when OTEL_SEMCONV_STABILITY_OPT_IN contains http or http/dup
    • Generate spans and metrics backwards compatible with previous attributes when OTEL_SEMCONV_STABILITY_OPT_IN contains http/dup or DOES NOT contain http

🐛 (Bug Fix)

  • fix(sampler-jaeger-remote): fixes an issue where package could emit unhandled promise rejections @Just-Sieb
  • fix(otlp-grpc-exporter-base): default compression to 'none' if env vars OTEL_EXPORTER_OTLP_TRACES_COMPRESSION and OTEL_EXPORTER_OTLP_COMPRESSION are falsy @sjvans
  • fix(sdk-events): remove devDependencies to old @opentelemetry/api-logs@0.52.0, @opentelemetry/api-events@0.52.0 packages #5013 @pichlermarc
  • fix(sdk-logs): remove devDependencies to old @opentelemetry/api-logs@0.52.0 #5013 @pichlermarc
  • fix(sdk-logs): align LogRecord#setAttribute type with types from @opentelemetry/api-logs@0.53.0 #5013 @pichlermarc
  • fix(exporter--otlp-): fixes a bug where signal-specific environment variables would not be applied and the trace-specific one was used instead #4971 @pichlermarc
    • Fixes:
      • OTEL_EXPORTER_OTLP_METRICS_COMPRESSION
      • OTEL_EXPORTER_OTLP_LOGS_COMPRESSION
      • OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE
      • OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE
      • OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY
      • OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY
      • OTEL_EXPORTER_OTLP_METRICS_INSECURE
      • OTEL_EXPORTER_OTLP_LOGS_INSECURE
  • fix(sdk-node): use warn instead of error on unknown OTEL_NODE_RESOURCE_DETECTORS values #5034
  • fix(exporter-logs-otlp-proto): Use correct config type in Node constructor
  • fix(instrumentation-http): Fix instrumentation of http.get, http.request, https.get, and https.request when used from ESM code and imported via the import defaultExport from 'http' style. #5024 @trentm

🏠 (Internal)

  • refactor(exporter-prometheus): replace MetricAttributes and MetricAttributeValues with Attributes and AttributeValues #4993

  • refactor(browser-detector): replace ResourceAttributes with Attributes #5004

  • refactor(sdk-logs): replace ResourceAttributes with Attributes #5005 @david-luna

Don't miss a new opentelemetry-js release

NewReleases is sending notifications on new releases.