-
Notifications
You must be signed in to change notification settings - Fork 93
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
Make SqlClient instrumentation lazy #1621
Conversation
Signed-off-by: RassK <[email protected]>
private readonly PluginManager _pluginManager; | ||
|
||
public SqlClientInitializer(PluginManager pluginManager) | ||
: base("Microsoft.Data.SqlClient") |
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately broken on .NET Framework https://github.com/open-telemetry/opentelemetry-dotnet/issues/3901
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue #1623
There was a problem hiding this 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.
Why
Towards open-telemetry/opentelemetry-dotnet#1437
What
Tests
Existing
Checklist
CHANGELOG.md
is updated.