OpenTelemetry default config (#9978)
This commit is contained in:
parent
4d57ddb5fa
commit
ac9a50751e
1 changed files with 10 additions and 4 deletions
|
@ -596,7 +596,7 @@ type Configuration struct {
|
||||||
OtelServiceName string `json:"otel-service-name"`
|
OtelServiceName string `json:"otel-service-name"`
|
||||||
|
|
||||||
// OtelSampler specifies the sampler to use for any traces created
|
// OtelSampler specifies the sampler to use for any traces created
|
||||||
// Default: AlwaysOff
|
// Default: AlwaysOn
|
||||||
OtelSampler string `json:"otel-sampler"`
|
OtelSampler string `json:"otel-sampler"`
|
||||||
|
|
||||||
// OtelSamplerRatio specifies the sampler ratio to use for any traces created
|
// OtelSamplerRatio specifies the sampler ratio to use for any traces created
|
||||||
|
@ -604,16 +604,19 @@ type Configuration struct {
|
||||||
OtelSamplerRatio float32 `json:"otel-sampler-ratio"`
|
OtelSamplerRatio float32 `json:"otel-sampler-ratio"`
|
||||||
|
|
||||||
//OtelSamplerParentBased specifies the parent based sampler to be use for any traces created
|
//OtelSamplerParentBased specifies the parent based sampler to be use for any traces created
|
||||||
// Default: false
|
// Default: true
|
||||||
OtelSamplerParentBased bool `json:"otel-sampler-parent-based"`
|
OtelSamplerParentBased bool `json:"otel-sampler-parent-based"`
|
||||||
|
|
||||||
// MaxQueueSize specifies the max queue size for uploading traces
|
// MaxQueueSize specifies the max queue size for uploading traces
|
||||||
|
// Default: 2048
|
||||||
OtelMaxQueueSize int32 `json:"otel-max-queuesize"`
|
OtelMaxQueueSize int32 `json:"otel-max-queuesize"`
|
||||||
|
|
||||||
// ScheduleDelayMillis specifies the max delay between uploading traces
|
// ScheduleDelayMillis specifies the max delay between uploading traces
|
||||||
|
// Default: 5000
|
||||||
OtelScheduleDelayMillis int32 `json:"otel-schedule-delay-millis"`
|
OtelScheduleDelayMillis int32 `json:"otel-schedule-delay-millis"`
|
||||||
|
|
||||||
// MaxExportBatchSize specifies the max export batch size to used when uploading traces
|
// MaxExportBatchSize specifies the max export batch size to used when uploading traces
|
||||||
|
// Default: 512
|
||||||
OtelMaxExportBatchSize int32 `json:"otel-max-export-batch-size"`
|
OtelMaxExportBatchSize int32 `json:"otel-max-export-batch-size"`
|
||||||
|
|
||||||
// ZipkinCollectorHost specifies the host to use when uploading traces
|
// ZipkinCollectorHost specifies the host to use when uploading traces
|
||||||
|
@ -975,9 +978,12 @@ func NewDefault() Configuration {
|
||||||
OpentelemetryConfig: "/etc/nginx/opentelemetry.toml",
|
OpentelemetryConfig: "/etc/nginx/opentelemetry.toml",
|
||||||
OtlpCollectorPort: "4317",
|
OtlpCollectorPort: "4317",
|
||||||
OtelServiceName: "nginx",
|
OtelServiceName: "nginx",
|
||||||
OtelSampler: "AlwaysOff",
|
OtelSampler: "AlwaysOn",
|
||||||
OtelSamplerRatio: 0.01,
|
OtelSamplerRatio: 0.01,
|
||||||
OtelSamplerParentBased: false,
|
OtelSamplerParentBased: true,
|
||||||
|
OtelScheduleDelayMillis: 5000,
|
||||||
|
OtelMaxExportBatchSize: 512,
|
||||||
|
OtelMaxQueueSize: 2048,
|
||||||
ZipkinCollectorPort: 9411,
|
ZipkinCollectorPort: 9411,
|
||||||
ZipkinServiceName: "nginx",
|
ZipkinServiceName: "nginx",
|
||||||
ZipkinSampleRate: 1.0,
|
ZipkinSampleRate: 1.0,
|
||||||
|
|
Loading…
Reference in a new issue