fix(otel): instrumentation providers do not need a config

This commit is contained in:
Emilio Garcia 2025-10-07 10:09:49 -04:00
parent 8fe3a25158
commit deedb3fb46
5 changed files with 59 additions and 36 deletions

View file

@ -21,7 +21,7 @@ class InstrumentationProvider(BaseModel):
"""
provider: str = Field(description="Provider identifier for discriminated unions")
config: BaseModel
config: BaseModel | None = Field(default=None, description="Optional configuration for the instrumentation provider. Most support configuration via environment variables.")
@abstractmethod
def fastapi_middleware(self, app: FastAPI) -> None: