SIGN IN SIGN UP

feat(sdk): add MissingDependencyError for declarative configuration (#5265)

* feat(sdk): add MissingDependencyError for declarative configuration dependency checking

Implements a structured MissingDependencyError (subclass of ConfigurationError)
that generates a descriptive pip install message. Replaces ad-hoc
ConfigurationError / ImportError raises across all declarative config
providers (tracer, logger, meter, file loader) for missing optional
dependencies like OTLP exporters, Prometheus reader, pyyaml, and
jsonschema.

Adds unit tests covering the new exception class.

Closes #5229

* fix: address PR #5265 review comments

- Rename .changelog/5229.added -> .changelog/5265.added
- Make MissingDependencyError inherit from both ConfigurationError and ImportError
- Add docstring hints for constructor parameters
- Use double quotes in pip install command for Windows compatibility

Assisted-by: Claude

* remove unnecessary test

---------

Co-authored-by: Mike Goldsmith <goldsmith.mike@gmail.com>
D
Dharaneesh N committed
2dfc7c92f51d91090d1f1aa1f66a9e89a37e4778
Parent: 634cec5
Committed by GitHub <noreply@github.com> on 7/8/2026, 12:56:44 PM