-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
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
Need a way to set 'key' field in jaeger span logs #2299
Comments
Can't you set the key-value using attributes argument below:
Probably I didn't understand your question, if you can elaborate more? |
@lalitb - sorry for the late reply, so your saying, something like Would translate to key : value for jaeger? I'll try that and get back to you, but right off the first problem is why would a log be of type 'keyvalueiterable'? To use this, I need to change my log string to some sort of array structure so it's constructible by KeyValueInterableView? |
@VivekSubr It would be mapped as mentioned here - But Jaeger exporter has been removed and you should be using OTLP exporter for this. Let us know if you have any further questions. |
This issue was marked as stale due to lack of activity. |
Is your feature request related to a problem?
In Opentracing, it was possible to set the 'key' field in span logs, since the api took an array of key value pairs:
Span->Log({ { key, value } })
However, in opentelemetry's AddEvent api, you can only set a single log string, or optionally a timestamp and tags... there doesn't seem to be a way to get equivalent behavior as opentracing.
example:
"logs": [
{
"timestamp": 1691424565488606,
"fields": [
{
"key": "event", <--- How to set this?
"type": "string", <--- Or this?
"value": "log"
}
Describe the solution you'd like
A way to set the key field in jaeger span log
Describe alternatives you've considered
Seen the AddEvent overloads in class span
The text was updated successfully, but these errors were encountered: