Skip to content

OTel SDK casts all span data values to string #758

@gggritso

Description

@gggritso

Summary

Something in the interaction between Go and OTel is casting all span data values to strings, even well-known measurement fields like http.response_content_length

Steps To Reproduce

I found this data in the wild, so I don't have actual repro steps, sorry! I can provide more details if you contact me on Slack

Expected Behavior

data.http.response_content_length is an integer

Screenshots

Screenshot 2024-01-08 at 4 35 49 PM

Environment

SDK

  • sentry-go version: 0.25.0
  • opentelemetry version: 1.18.0

Sentry

  • Using hosted Sentry in sentry.io? yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugIssue type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions