How to set span name in AspNetCoreInstrumentation and HttpClientInstrumentation #4292
-
I want to set span in specific format when there is specific header present in request. How can I set that. This is some sample I am trying out. _ = services
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
This is an open issue - #3977 |
Beta Was this translation helpful? Give feedback.
-
Thanks @vishweshbankwar for reply. ` _ = services
But the output was not as per expected. |
Beta Was this translation helpful? Give feedback.
-
Finally found the root cause and thanks @vishweshbankwar for having a close look at my package reference and driving to the solution. Actually the issue over here the package reference added for So after updating my packages with stable version and correcting the available versions for Runtime and Process, it has worked as per expected. My updated package references: |
Beta Was this translation helpful? Give feedback.
Finally found the root cause and thanks @vishweshbankwar for having a close look at my package reference and driving to the solution.
Actually the issue over here the package reference added for
OpenTelemetry.Extensions.Hosting
OpenTelemetry.Exporter.Console
OpenTelemetry.Instrumentation.Runtime
OpenTelemetry.Instrumentation.Process.
So after updating my packages with stable version and correcting the available versions for Runtime and Process, it has worked as per expected.
My updated package references:
<PackageReference Update="OpenTelemetry.Instrumentation.AspNetCore" Version="1.0.0-rc9.14" /> <PackageReference Update="OpenTelemetry.Extensions.Hosting" Version="1.4.0" /> <PackageRefe…