-
Notifications
You must be signed in to change notification settings - Fork 773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenTelemetry.Instrumentation.AspNetCore Does Not Work as Expected in Azure Function Isolated-Worker Mode #5232
Comments
@martinjt Was discussing this exact issue in slack as well! |
Adding @RohitRanjanMS from Azure Functions. |
@lsl-2020 There is no expectation that AspNetCore instrumentation would work in Azure Functions or any other specific frameworks other than regular AspNetCore apps. For the Azure Functions - its a feature request to Azure Functions to provide a native instrumentation support or an instrumentation library. It is entirely possible than OTel's contrib repo will host the instrumentation library, so you may create a feature request there (or directly in Azure Functions repo). |
@RohitRanjanMS For clarity on the solution you're proposing, it will allow custom samplers for head sampling, full config of the exporters, processors, resource attribute customisation etc.? The reason I ask is if you'll have all that in April/May, it may not be worth the otel team working on the instrumentation package, however, from what I've been told the solution being worked on wouldn't allow that, only configuring the export? |
Thank you @cijothomas for the reply. |
May likely for public preview. |
Question
Descriptions
Hi experts, as title mentioned.
OpenTelemetry.Instrumentation.AspNetCore
is not work as expected. Detailed behaviors: There are indeedActivity
s generated by .NET framework, but none of them are sampled/recorded. Therefore, child activity has validParentId
but nullParent
, as is shown in screenshot below.I have been debugging inside package
OpenTelemetry.Instrumentation.AspNetCore
and found that when Http request comes in,HttpInListener
does not capture the event at all. My best guess is that Azure Function isolated-worker mode does not rely on internal ActivitySource "Microsoft.AspNetCore", which is the instrumentation package relying on.Currently I am using a function middleware pipeline as a replacement of the AspNetCore instrumentation package. But I really do hope to get some hints on what's going on here. Thanks!
Reproduce
OpenTelemetry.Instrumentation.AspNetCore
: 1.6.0The text was updated successfully, but these errors were encountered: