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

SQL query logs can't be enabled #211

Open
mahdiprog opened this issue Jan 23, 2023 · 0 comments
Open

SQL query logs can't be enabled #211

mahdiprog opened this issue Jan 23, 2023 · 0 comments
Labels

Comments

@mahdiprog
Copy link

According to Microsoft documentation, after SDK version 2.14.0, in order to send SQL query logs to App Insights, we need to add the following code snippet:

services.ConfigureTelemetryModule<DependencyTrackingTelemetryModule>((module, o) => { module. EnableSqlCommandTextInstrumentation = true; });

Description
I couldn't find any place for enabling it in Serilog sink

Reproduction

  1. Use AppInsights sink
  2. Execute any SQL query
  3. It won't be shown in Azure

Expected behavior
There should be a way to enable it. within code and via appsettings

Relevant package, tooling and runtime versions
Serilog.Sinks.ApplicationInsights V4.0.0

Additional context
Add any other context about the problem here.

@mahdiprog mahdiprog added the bug label Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant