Open ep-workai opened 1 month ago
What are "dependencies"? Are you referring to the Database Spans? Please share a minimal repro explaining the issue, so we can help further.
In context of Azure logging storage (Azure Log Analytics) Dependencies are traces of special category for external activities. Database spans are indeed in this category, also HTTP calls, etc. with separate instrumentation packages.
I provided an example in edited post version.
@ep-workai Please share a minimal repro explaining the issue, so we can help further. You can take the helloworld OpenTelemetry example, and incrementally add things to until the issue reproduces. It is hard for me to help otherwise.
Component
OpenTelemetry.Instrumentation.SqlClient
Package Version
Runtime Version
net472, net8.0
Description
After sampler attached seems normal traces are sampled, but not dependencies ones for example from SqlClient library. There are a lot of dependency traces in storage.
Steps to Reproduce
Expected Result
Dependencies should be also sampled
Actual Result
Dependencies are not sampled
Additional Context
No response
Example code with configuration: