-
I have some traces captured in a csv file for two different microservices (e.g ServiceA and ServiceB) In my spring boot application, I would like to read this csv file and convert it to OLTP and emit. I initialized the SDK as follows -
Now read the CSV file and converted to spans as follows -
This code emits the traces in Jaeger, but I see only one Service ("demo-service") in the drop down.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
Yes, you would need to create more than one instance of the SDK. I don't think there's another way to do this at the moment, and it should work fine. Just avoid calling |
Beta Was this translation helpful? Give feedback.
-
SpanData mySpanData = MySpanData.builder() Collection spanData = new ArrayList(); OtlpGrpcSpanExporter exporter = OtlpGrpcSpanExporter.builder() exporter.export(spanData); |
Beta Was this translation helpful? Give feedback.
SpanData mySpanData = MySpanData.builder()
.spanId(myspanId)
.spanContext(myspancontext)
.transaction(transaction).build();
Collection spanData = new ArrayList();
spanData.add(mySpanData);
OtlpGrpcSpanExporter exporter = OtlpGrpcSpanExporter.builder()
.setEndpoint("your-endpoint-url")
.build();
exporter.export(spanData);