Manual:$wgOpenTelemetryConfig

This page is a translated version of the page Manual:$wgOpenTelemetryConfig and the translation is 67% complete.
プロファイリング: $wgOpenTelemetryConfig
Configuration for OpenTelemetry instrumentation, or null to disable it.
導入されたバージョン:1.43.0 (Gerrit change 1061573; git #16ec1a37)
除去されたバージョン:使用中
許容される値:(オブジェクト) または null
既定値:null

詳細

Configuration for OpenTelemetry instrumentation, or null to disable it.

取りうるキー:

  • 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',
];