Manual:$wgOpenTelemetryConfig/pl
Appearance
Profiling: $wgOpenTelemetryConfig | |
---|---|
Configuration for OpenTelemetry instrumentation, or null to disable it. |
|
Wprowadzono w wersji: | 1.43.0 (Gerrit change 1061573; git #16ec1a37) |
Usunięto w wersji: | nadal w użyciu |
Dozwolone wartości: | (objekt) lub null |
Domyślna wartość: | null |
Inne ustawienia: Alfabetycznie | Według funkcji |
Szczegóły
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',
];