Manual:$wgOpenTelemetryConfig
Appearance
Profiling: $wgOpenTelemetryConfig | |
---|---|
Configuration for OpenTelemetry instrumentation, or null to disable it. |
|
Introduced in version: | 1.43.0 (Gerrit change 1061573; git #16ec1a37) |
Removed in version: | Still in use |
Allowed values: | (object) or null |
Default value: | null |
Other settings: Alphabetical | By function |
Details
[edit]Configuration for OpenTelemetry instrumentation, or null
to disable it.
Possible keys:
- samplingProbability - probability in % of sampling a trace for which no sampling decision has been taken yet. Must be between 0 and 100.
- serviceName - name of the service being instrumented.
- endpoint - URL of the OpenTelemetry collector to send trace data to. This has to be an endpoint accepting OTLP data over HTTP (not gRPC).
An example config to send data to a local OpenTelemetry or Jaeger collector instance:
$wgOpenTelemetryConfig = [
'samplingProbability' => 0.1,
'serviceName' => 'mediawiki-local',
'endpoint' => 'http://127.0.0.1:4318/v1/traces',
];