Update XRequestPropagator import in instrumentTelemetry.js

This updates instrumentTelemetry.js to import XRequestPropagator via the new 'otel' subpath, which should avoid error-prone import order vs. node auto-instrumentations going forward.

As a side effect, instrumentation-winston will now become active. There are two paths we could take:

  1. maintain the same behavior by simply disabling it; or
  2. configure it appropriately for WMF production use.

This change takes the latter approach, leaving trace-correlation field annotation enabled, while providing a logHook to rewrite fields to their ecs-compliant equivalents (where they exist).

For clarity, log-sending via the OTel Logs API is also disabled explicitly, since it is not something we intend to support. In practice, the feature is not present unless @opentelemetry/winston-transport is also installed (and it is not).

Bug: T416756

Merge request reports

Loading