Replies: 1 comment
-
There is no standard way designed to share the Context across languages. There have been some discussions here - https://github.com/open-telemetry/community/discussions/734. Most probably, in your case you need to write your own parser to deserialize the Span. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently I'm passing context from java to our c++ code as a string. The format, however, is not standard JSON and thus I don't have a great way of parsing it. Do I need to implement my own parser or is there a better way? I'd like to be able to reconstruct the message into a Span and use it for our c++ code.
What I'm receving on the the c++ side:
{opentelemetry-trace-span-key=SdkSpan{traceId=82af985588f983f1260e7b2f6d383fd1, spanId=1311808d606dedc4, parentSpanContext=ImmutableSpanContext{traceId=82af985588f983f1260e7b2f6d383fd1, spanId=a9be54d8115c4f63, traceFlags=01, traceState=ArrayBasedTraceState{entries=[]}, remote=false, valid=true}, name=send data, kind=SERVER, attributes=null, status=ImmutableStatusData{statusCode=UNSET, description=}, totalRecordedEvents=0, totalRecordedLinks=0, startEpochNanos=1690901592304165372, endEpochNanos=0}}
Beta Was this translation helpful? Give feedback.
All reactions