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

Custom ResourceDetector discovery should fail gracefully when entry point not found #4268

Open
cruisehall opened this issue Nov 11, 2024 · 0 comments · May be fixed by #4373
Open

Custom ResourceDetector discovery should fail gracefully when entry point not found #4268

cruisehall opened this issue Nov 11, 2024 · 0 comments · May be fixed by #4373

Comments

@cruisehall
Copy link

cruisehall commented Nov 11, 2024

Is your feature request related to a problem?

N/A

Describe the solution you'd like

When the SDK cannot find an entry point indicated by the OTEL_EXPERIMENTAL_RESOURCE_DETECTORS env var it should handle the exception gracefully and continue processing other entry points (or proceed with initialization).

Describe alternatives you've considered

No response

Additional Context

As a member of a platform team that provides common observability utilities, I would like to bake in default value for this environment variable at the infrastructure layer for all of my internal users (e.g. using a common dockerfile) such that they can automatically use a custom resource detector provided by my team.

The current behavior, in which the SDK initialization fails if an entrypoiny is not found, creates an implicit dependency between infrastructure and application code.

Would you like to implement a fix?

Yes

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

Successfully merging a pull request may close this issue.

1 participant