feat(extension): support otel grpc exporter (#19686)

This commit is contained in:
XlKsyt
2025-05-14 22:37:27 +08:00
committed by GitHub
parent e040f8069b
commit 85eb55de37
5 changed files with 36 additions and 13 deletions

View File

@@ -27,6 +27,11 @@ class OTelConfig(BaseSettings):
default="otlp",
)
OTEL_EXPORTER_OTLP_PROTOCOL: str = Field(
description="OTLP exporter protocol ('grpc' or 'http')",
default="http",
)
OTEL_SAMPLING_RATE: float = Field(default=0.1, description="Sampling rate for traces (0.0 to 1.0)")
OTEL_BATCH_EXPORT_SCHEDULE_DELAY: int = Field(