0

I am trying to access operationId in Java.

I have an access to TelemetryClient but telemetryClient.getContext().getOperation().getId() returns null and I don't know how can I get current operationId for the request.

I am looking for System.Diagnostics.Activity.Current.RootId equivalent in Java.

Giorgi Tsiklauri
  • 9,715
  • 8
  • 45
  • 66
Yoda
  • 17,363
  • 67
  • 204
  • 344

1 Answers1

0

ThreadContext.getRequestTelemetryContext().getHttpRequestTelemetry().getContext().getOperation().getId() seems to be a way to go.

Yoda
  • 17,363
  • 67
  • 204
  • 344