We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OS: any Python version: any SDK version: 1.30.0 API version: 1.30.0
OTLP proto was expanded to allow for bytes values in attributes about 3 years ago.
#4118 / #4128 implemented that in the OTLP exporter.
Unfortunately, the #4218 alone is not enough.
The bytes-valued attributes are coerced to strings way before they reach the exporter.
It happens here:
opentelemetry-python/opentelemetry-api/src/opentelemetry/attributes/__init__.py
Lines 110 to 121 in afec2dd
stringValue
bytesValue
produces bytesValue: <bytes>
bytesValue: <bytes>
produces stringValue: <str> or drops the attribute with a warning
stringValue: <str>
#4118 added encoding of bytes attributes in OTLP
None
The text was updated successfully, but these errors were encountered:
bytes
AnyValue
i would be happy to resolve this too, do you have any proposed sol in mind that could be done ?
Sorry, something went wrong.
No branches or pull requests
Describe your environment
OS: any
Python version: any
SDK version: 1.30.0
API version: 1.30.0
What happened?
OTLP proto was expanded to allow for bytes values in attributes about 3 years ago.
#4118 / #4128 implemented that in the OTLP exporter.
Unfortunately, the #4218 alone is not enough.
The bytes-valued attributes are coerced to strings way before they reach the exporter.
It happens here:
opentelemetry-python/opentelemetry-api/src/opentelemetry/attributes/__init__.py
Lines 110 to 121 in afec2dd
Steps to Reproduce
stringValue
instead ofbytesValue
in the outputExpected Result
produces
bytesValue: <bytes>
Actual Result
produces
stringValue: <str>
or drops the attribute with a warningAdditional context
#4118 added encoding of bytes attributes in OTLP
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: