[bug] An Activity tag with a non-string value does not get transferred to the span #2651
Labels
bug
Something isn't working
comp:exporter.stackdriver
Things related to OpenTelemetry.Exporter.Stackdriver
Component
OpenTelemetry.Exporter.Stackdriver
Package Version
Runtime Version
net9.0
Description
Activity tags with non-string values are not present in Cloud Monitoring trace spans.
This appears to be because
ActitivyExtensions.ToSpan
considers onlyActivity.Tags
, which calls_tags.EnumerateStringValues()
. I believe it should useTagObjects
instead, to get all tags.Steps to Reproduce
Add a tag with a non-string value to an activity. For example, this test fails:
Expected Result
Tags with non-string values are included as span attributes.
Actual Result
Tags with non-string values are not included as span attributes.
Additional Context
No response
The text was updated successfully, but these errors were encountered: