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

Refactor public API and align with 1.10 and 1.11 of the SDK #210

Merged
merged 25 commits into from
Feb 13, 2025

Conversation

stevejgordon
Copy link
Contributor

@stevejgordon stevejgordon commented Feb 11, 2025

This is quite a significant update from the previous code and includes a lot of refactorings as a result. In short, as the SDK since 1.10 includes an OpenTelemetryBuilder, we can base many extension methods directly on the interface it implements IOpenTelemetryBuilder.

A significant change in this PR is removing the "magic" global override we used to replace AddOpenTelemetry with our behaviour. We no longer do this to avoid surprises and prefer an explicit small code change from consumers.

We now also track the calls to the various builders to avoid bootstrapping components more than is required and log such circumstances.

We expect the auto instrumentation tests to fail for now as those need to be uncoupled from the SDK workflow.

Closes #164
Closes #175

@stevejgordon stevejgordon force-pushed the remove-global-override branch from fe3dad1 to c90d61d Compare February 12, 2025 14:31
@stevejgordon
Copy link
Contributor Author

The Release Build failure can be ignored for now, as we have work to do on the auto-instrumentation library.

@stevejgordon stevejgordon requested a review from a team February 12, 2025 15:11
@stevejgordon stevejgordon merged commit 4b4a98f into main Feb 13, 2025
4 of 6 checks passed
@stevejgordon stevejgordon deleted the remove-global-override branch February 13, 2025 08:42
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.

Review changes in 1.10 which introduce OpenTelemetrySdk.Create .NET 9 Compatibility check
2 participants