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

[next-gen] Add IConfiguration/Options binding and bootstrap for the mini-SDK #4085

Conversation

CodeBlanch
Copy link
Member

[Note: This PR is targeting the out-of-process-collection branch]

Changes

  • Adds IConfiguration/Options binding and bootstrap for the mini-SDK.

Details

See dotnet-monitor OTLP Egress

Everything in the mini-SDK is simple POCOs. It doesn't plug into Options like the main SDK does.

This PR is adding another project to the next-gen solution called OpenTelemetry.AutoInstrumentation.Sdk.Configuration. What this project does is allow you to bind OpenTelemetryOptions to some config section (ex: OpenTelemetry) and then bootstrap the mini-SDK from the options.

The idea is dotnet-monitor (or whatever host) can use this library to bind its configuration and set up the SDK components (span processor, logrecord processor, and metricreader) without having to worry about the gritty details.

@CodeBlanch CodeBlanch requested a review from a team as a code owner March 7, 2025 22:49
@rajkumar-rangaraj rajkumar-rangaraj merged commit ace5d78 into open-telemetry:out-of-process-collection Mar 12, 2025
33 of 37 checks passed
@CodeBlanch CodeBlanch deleted the next-gen-options branch March 12, 2025 17:02
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

Successfully merging this pull request may close these issues.

2 participants