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: Reduce OTel dependencies #132

Merged
merged 2 commits into from
Jan 11, 2024

Conversation

austindrenski
Copy link
Member

@austindrenski austindrenski commented Jan 11, 2024

The OpenFeature.Contrib.Hooks.Otel project currently references (1) an exporter implementation which libraries should not do under any normal circumstances, and (2) the main OpenTelemetry package which is excessive given all of the excellent work by the dotnet/runtime and open-telemetry/opentelemetry-dotnet teams have done over the last couple of years to ensure that the BCL types in System.Diagnostics conform to OTel standards.

This commit removes (1) and pares down (2) to from OpenTelemetry to OpenTelemetry.Api to shrink the dependency footprint we ship to consumers.

At this point, I would argue that this hooks package should meet the minimal dependency requirement for upstream inclusion in the main OpenFeature package, but deferring that discussion for now.

@austindrenski austindrenski requested a review from a team as a code owner January 11, 2024 19:23
@austindrenski austindrenski changed the title refactor: Reduce Otel dependencies refactor: Reduce OTel dependencies Jan 11, 2024
The `OpenFeature.Contrib.Hooks.Otel` project currently references
(1) an exporter implementation which libraries should _not_ do
under any normal circumstances, and (2) the main OpenTelemetry
project which is excessive given all of the excellent work by
the dotnet/runtime and open-telemetry/opentelemetry-dotnet teams
have done over the last couple of years to ensure that the BCL
types in `System.Diagnostics` conform to OTel standards.

This commit removes (1) and pares down (2) to from `OpenTelemetry`
to `OpenTelemetry.Api` to shrink the dependency footprint we ship
to consumers.

At this point, I would argue that this hooks package should meet
the minimal dependency requirement for upstream inclusion in the
main OpenFeature package, but deferring that discussion for now.

Signed-off-by: Austin Drenski <austin@austindrenski.io>
Copy link
Member

@askpt askpt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! These changes make complete sense 👍
Thank you

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.

None yet

5 participants