promscale icon indicating copy to clipboard operation
promscale copied to clipboard

Support for Jaeger tags with binary value

Open alejandrodnm opened this issue 3 years ago • 0 comments

Description

Support for Jaeger tags with binary value

Since we are using the OTEL translator, when ingesting Jaeger traces all the tags with VType=ValueType_BINARY are being encoded into base64 and stored as strings. The context of the type of value is lost after this translation occurs, meaning that, when we return those tags in a Jaeger query we return the base64 string as VType=ValueType_STRING.

To preserve the type of the value, the prefix __ValueType_BINARY__ will be added to the base64 string before storing in the DB. When retrieving a trace we look for tags that are string and have this prefix, we remove it and return a ValueType_BINARY with the result of decoding the base64 string.

Jaeger allows these type of tags for Spans, Process and Logs.

Merge requirements

Please take into account the following non-code changes that you may need to make with your PR:

  • [x] CHANGELOG entry for user-facing changes
  • [ ] Updated the relevant documentation

alejandrodnm avatar Sep 16 '22 16:09 alejandrodnm