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

latest release: semconv/v1.38.0
14 hours ago

0.208.0

💥 Breaking Changes

  • feat(otlp-exporter-base)!: allow passing an async function to headers option #5994 @pichlermarc
    • In addition to static headers, OTLP exporters now allow passing an async function that returns headers which will be called before each export. See TSDoc for headers in OTLPExporterConfigBase for details.
    • Breaking changes:
      • (user-facing): headers option in all OTLP exporters now accepts a function that returns a Promise<Record<string, string>> in addition to the existing Record<string, string> type.
      • (user-facing): headers in HttpNodeRequestParameters, FetchTransportParameters, and XhrRequestParameters now only accept async functions.
      • (user-facing): headers in OtlpHttpConfiguration now only accepts async functions.
  • feat(sdk-logs): remove NoopLogRecordProcessor from exports #6079 @cjihrig
  • feat(api-logs): remove ProxyLogger from exports #6082 @cjihrig
  • feat(api-logs): remove NOOP_LOGGER_PROVIDER and NoopLoggerProvider from exports #6086 @cjihrig

🚀 Features

  • feat(instrumentation): allow error of safeExecuteInTheMiddleAsync to be async #6032 @JPeer264
  • feat(opentelemetry-configuration): parse logger provider from config file #5995 @maryliag
  • feat(opentelemetry-configuration): parse meter provider from config file #6000 @maryliag
  • feat(opentelemetry-configuration): add backup options for certificates and endpoints #6038 @maryliag
  • feat(opentelemetry-configuration): add backups for compression, timeout, headers #6058 @JamieDanielson
  • feat(opentelemetry-configuration): set attributes from attribute list from env variables #6043 @maryliag

🐛 Bug Fixes

  • fix(instrumentation-fetch): Handling null-body-status responses #6037 @m0sa

📚 Documentation

  • doc(sdk-logs): document that SimpleLogRecordProcessor is not for production use #6080 @cjihrig

🏠 Internal

  • test(otlp-grpc-exporter-base): increase timeout in flaky test #6042 @cjihrig
  • test(sdk-node): use process.env consistently in tests #6052 @cjihrig
  • test(sdk-node): ensure process.env is cleaned up between tests #6066 @cjihrig

Don't miss a new opentelemetry-js release

NewReleases is sending notifications on new releases.