Packages

@opentelemetry/api-events

0.202.0 · 2 Jun 2025Apache-2.08.8k / weekRepositoryHomepagenpmAtom feed

Deprecated by its maintainers: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.What to use instead
Your version

0.52.0

5 Jun 2024Where it was published

0.202.0 is the newest release of 0.52.x.

npm marks 0.52.0 as deprecated: Package no longer supported. Contact Support at npmjs.com/support for more info.

In short

2 breaking1 removed2 new5 fixed2 internal

  • Breaking

    exporter--otlp-: Rewrite exporter config logic for testability #4971

  • Breaking

    instrumentation-http: Remove long deprecated options #5085

  • Removed

    sdk-events: Remove devDependencies to old @opentelemetry/api-logs@0.52.0, @opentelemetry/api-events@0.52.0 packages #5013

Release note

:boom: Breaking Change

  • Breaking

    exporter--otlp-: Rewrite exporter config logic for testability #4971

    • (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

    • (user-facing) OTLP exporter config headers type changed from Partial<Record<string, unknown>> to Record<string, string>

  • Breaking

    otlp-exporter-base: Do not export functions that are intended for internal use #4971

    • Drops the following functions and types that were intended for internal use from the package exports:

      • parseHeaders

      • appendResourcePathToUrl

      • appendResourcePathToUrlIfNeeded

      • configureExporterTimeout

      • invalidTimeout

  • Breaking

    instrumentation-http: Remove long deprecated options #5085

    • 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.

:rocket: (Enhancement)

  • api-logs: Add delegating no-op logger provider #4861

  • instrumentation-http: Add support for Semantic Conventions 1.27+ #4940 #4978 #5026

    • 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: (Bug Fix)

  • sampler-jaeger-remote: Fixes an issue where package could emit unhandled promise rejections @Just-Sieb

  • otlp-grpc-exporter-base: Default compression to 'none' if env vars OTEL_EXPORTER_OTLP_TRACES_COMPRESSION and OTEL_EXPORTER_OTLP_COMPRESSION are falsy @sjvans

  • Removed

    sdk-events: Remove devDependencies to old @opentelemetry/api-logs@0.52.0, @opentelemetry/api-events@0.52.0 packages #5013

  • Removed

    sdk-logs: Remove devDependencies to old @opentelemetry/api-logs@0.52.0 #5013

  • sdk-logs: Align LogRecord#setAttribute type with types from @opentelemetry/api-logs@0.53.0 #5013

  • exporter--otlp-: Fixes a bug where signal-specific environment variables would not be applied and the trace-specific one was used instead #4971

    • Fixes: OTEL_EXPORTER_OTLP_METRICS_COMPRESSION

    • Fixes: OTEL_EXPORTER_OTLP_LOGS_COMPRESSION

    • Fixes: OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE

    • Fixes: OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE

    • Fixes: OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY

    • Fixes: OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY

    • Fixes: OTEL_EXPORTER_OTLP_METRICS_INSECURE

    • Fixes: OTEL_EXPORTER_OTLP_LOGS_INSECURE

  • sdk-node: Use warn instead of error on unknown OTEL_NODE_RESOURCE_DETECTORS values #5034

  • exporter-logs-otlp-proto: Use correct config type in Node constructor

  • 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

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.