Skip to content

chore(dotnet-sdk): remove dependecy on OpenTelemetry.Api - #524

Merged
rhamzeh merged 1 commit into
mainfrom
chore/dotnet-sdk-remove-otel-dependency
Mar 31, 2025
Merged

chore(dotnet-sdk): remove dependecy on OpenTelemetry.Api#524
rhamzeh merged 1 commit into
mainfrom
chore/dotnet-sdk-remove-otel-dependency

Conversation

@rhamzeh

@rhamzeh rhamzeh commented Mar 28, 2025

Copy link
Copy Markdown
Member

As the SDK is not using features from OpenTelemetry Api the dependency is not needed. The instrumentation of the SDK is done via dotnet mechanism (System.Diagnostic). The appliction which use the SDK should manage and configure the OpenTelemetry packages

Backport of openfga/dotnet-sdk#100 by @m4tchl0ck

Description

References

Review Checklist

  • I have clicked on "allow edits by maintainers".
  • I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
  • The correct base branch is being used, if not main
  • I have added tests to validate that the change in functionality is working as expected

As the SDK is not using features from OpenTelemetry Api the dependency is not needed.
The instrumentation of the SDK is done via dotnet mechanism (System.Diagnostic).
The appliction which use the SDK should manage and configure the OpenTelemetry packages

Backport of openfga/dotnet-sdk#100
@rhamzeh
rhamzeh requested a review from a team as a code owner March 28, 2025 14:46
@rhamzeh
rhamzeh added this pull request to the merge queue Mar 31, 2025
Merged via the queue into main with commit 4fbefdf Mar 31, 2025
@rhamzeh
rhamzeh deleted the chore/dotnet-sdk-remove-otel-dependency branch March 31, 2025 16:09
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.

3 participants