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

Make SqlClient instrumentation lazy #1621

Merged
merged 1 commit into from
Nov 16, 2022

Conversation

RassK
Copy link
Contributor

@RassK RassK commented Nov 15, 2022

Why

Towards open-telemetry/opentelemetry-dotnet#1437

What

  • Makes SqlClient instrumentation loading lazy (traces)

Tests

Existing

Checklist

  • CHANGELOG.md is updated.
  • Documentation is updated.
  • New features are covered by tests.

@RassK RassK requested a review from a team November 15, 2022 14:36
private readonly PluginManager _pluginManager;

public SqlClientInitializer(PluginManager pluginManager)
: base("Microsoft.Data.SqlClient")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do we also support System.Data.SqlClient? - I see we have no tests at least...

Copy link
Member

@pellared pellared Nov 15, 2022

Choose a reason for hiding this comment

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

Yes we do. Can you add a test as part of this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good, I'll do this all within this PR 👍

Copy link
Contributor Author

@RassK RassK Nov 16, 2022

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

I suggest removing support for System.Data.SqlClient until it is fixed (config.md must be updated)

Copy link
Member

Choose a reason for hiding this comment

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

I will make a separate PR and issue.

Copy link
Member

Choose a reason for hiding this comment

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

Issue #1623

Copy link
Contributor

@pjanotti pjanotti left a comment

Choose a reason for hiding this comment

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

Looks good so far, waiting for the new test.

@pellared pellared merged commit 510aee9 into open-telemetry:main Nov 16, 2022
@RassK RassK deleted the optimize-sqlclient-loading branch November 16, 2022 13:17
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