Manual:$wgOpenTelemetryConfig/it
Profiling: $wgOpenTelemetryConfig | |
---|---|
Configuration for OpenTelemetry instrumentation, or null to disable it. |
|
Introdotto nella versione: | 1.43.0 (Gerrit change 1061573; git #16ec1a37) |
Rimosso nella versione: | Still in use |
Valori concessi: | (object) or null |
Valore predefinito: | null |
Impostazioni: Alfabetiche | Per funzione |
Details
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. Deve essere tra 0 e 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',
];