File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
client/src/main/java/com/microsoft/durabletask Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 11## v1.5.2
2- * Add tracing support to send information to the WebJobs extension ([ #211 ] ( https://github.com/microsoft/durabletask-java/pull/211 ) )
2+ * Add tracing support for Azure Functions client scenarios ([ #211 ] ( https://github.com/microsoft/durabletask-java/pull/211 ) )
33
44## v1.5.1
55* Improve logging for unexpected connection failures in DurableTaskGrpcWorker ([ #216 ] ( https://github.com/microsoft/durabletask-java/pull/216/files ) )
Original file line number Diff line number Diff line change 1717import java .util .concurrent .TimeUnit ;
1818import java .util .concurrent .TimeoutException ;
1919import java .util .logging .Logger ;
20+ import java .util .stream .Collectors ;
2021
2122import io .opentelemetry .api .trace .Span ;
2223import io .opentelemetry .api .trace .SpanContext ;
@@ -129,7 +130,11 @@ public String scheduleNewOrchestrationInstance(
129130 );
130131
131132 // Get the tracestate
132- traceState = spanContext .getTraceState ().toString ();
133+ traceState = spanContext .getTraceState ().asMap ()
134+ .entrySet ()
135+ .stream ()
136+ .map (entry -> entry .getKey () + "=" + entry .getValue ())
137+ .collect (Collectors .joining ("," ));
133138 }
134139
135140 if (traceParent != null ) {
You can’t perform that action at this time.
0 commit comments