Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Metrics] Revisit every public Error enums and Results #2564

Open
cijothomas opened this issue Jan 25, 2025 · 0 comments
Open

[Metrics] Revisit every public Error enums and Results #2564

cijothomas opened this issue Jan 25, 2025 · 0 comments
Milestone

Comments

@cijothomas
Copy link
Member

https://github.com/open-telemetry/opentelemetry-rust/blob/main/opentelemetry-sdk/src/metrics/error.rs#L13 defines pub enums that consist of errors from a variety of scenarios. The same is used as return type for export(), flush(), shutdown() methods, and also for internal validation methods for Views.

Must redesign this to ensure specific Error types are used for each methods.

Already discussed similar idea in #2381, but this issue is specifically for fixing Metrics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant