You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm often frustrated when I need to convert dynamic or mixed-type data (e.g. from map[string]interface{} or JSON payloads) into OpenTelemetry attributes. The current API only provides type-specific constructors such as attribute.String(), attribute.Int(), and so on, which requires repetitive and verbose type-switching logic in user code.
This makes it inconvenient to handle arbitrary structured data in a generic way, especially when building spans programmatically from logs, requests, or metadata.
The text was updated successfully, but these errors were encountered:
Problem Statement
I'm often frustrated when I need to convert dynamic or mixed-type data (e.g. from map[string]interface{} or JSON payloads) into OpenTelemetry attributes. The current API only provides type-specific constructors such as attribute.String(), attribute.Int(), and so on, which requires repetitive and verbose type-switching logic in user code.
This makes it inconvenient to handle arbitrary structured data in a generic way, especially when building spans programmatically from logs, requests, or metadata.
The text was updated successfully, but these errors were encountered: