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
OpenTelemetry.logger.debug("Error encoding string in UTF-8: #{e}")
options.fetch(:placeholder,STRING_PLACEHOLDER)
end
It is likely worth extracting this into a common utility module, and implementing attribute truncation in a single place with a configurable limit (most likely in the SDK Span class).
The text was updated successfully, but these errors were encountered:
👋 This issue has been marked as stale because it has been open with no activity. You can: comment on the issue or remove the stale label to hold stale off for a while, add the keep label to hold stale off permanently, or do nothing. If you do nothing this issue will be closed eventually by the stale bot.
Related to open-telemetry/opentelemetry-specification#504
Java provides optional attribute value truncation: https://github.com/open-telemetry/opentelemetry-java/blob/a021a59b9433691c06ab2265b4c574eab825b0ed/sdk/tracing/src/main/java/io/opentelemetry/sdk/trace/SpanBuilderSdk.java#L195-L197
We have some ad-hoc truncation and UTF8 validation in the Redis instrumentation, for example:
opentelemetry-ruby/instrumentation/redis/lib/opentelemetry/instrumentation/redis/utils.rb
Lines 60 to 80 in 1a680bb
It is likely worth extracting this into a common utility module, and implementing attribute truncation in a single place with a configurable limit (most likely in the SDK
Span
class).The text was updated successfully, but these errors were encountered: