Comments (2)
I'm seeing this as well. Works when ran locally but not when deployed an Azure app service. .NET 8, ASP.NET API wherein I have a middleware that attempts to add values to the RequestTelemetry.
from applicationinsights-dotnet.
My Azure App Service is using Application Insights autoinstrumentation extension (v2.8.45.1) with interop enabled (XDT_MicrosoftApplicationInsights_PreemptSdk=1), and I wonder if that is related. Perhaps when running locally, there's no autoinstrumented instance of AI running to pre-empt the SDK, so custom telemetry still works.
It's unclear to me what SDK interop actually does; the documentation says "Loads the extension side by side with the SDK and uses it to send telemetry. (Disables the Application Insights SDK.)" which to me is ambiguous if things like writing RequestTelemetry in middleware would still work.
Something else I've found is that if I enumerate and log out httpContext.Features.AsEnumerable()
in the middleware, RequestTelemetry appears as a registered feature, but any attempt to retrieve it returns null.
Update: Setting XDT_MicrosoftApplicationInsights_PreemptSdk=0
seems to have resolved it.
from applicationinsights-dotnet.
Related Issues (20)
- Incorrect parent ID for Azure Storage SDK dependency calls
- GRPC Memory Leak HOT 1
- Application Insights Logger Scope overwritting OriginalFormat property HOT 3
- App Insights map tile not working on custom dashboards HOT 1
- global property formatted as a datetime
- package may fail to build on certain locales
- Microsoft.ApplicationInsights.WorkerService does not log traces even after specifying override in config HOT 3
- Dependencies to unsupported and end of life nuget packages and frameworks HOT 2
- EventCounterCollectionModule sends events every second HOT 15
- Service registration fails HOT 4
- disable tracking
- Add "area" and "handler" names to Request/Operation name for Razor Pages
- Disable sampling for a specific request HOT 2
- 500.53 URL rewrite module error with message Outbound rewrite rules cannot be applied when the content of the HTTP response is encoded ('br')
- Difference in behaviour between Microsoft.Azure.ServiceBus and Azure.Messaging.ServiceBus for adding Activity Tags to telemetry
- Microsoft.Extensions.Logging.ApplicationInsights adds trace IDs a 2nd time to trace telemetry HOT 5
- Live metrics doesn't show logger traces when a custom log level is set HOT 1
- Application Insights does not log dependencies with a profiler attached HOT 1
- When saving custom events to Application Insights, Local Date Time information gets lost (it gets converted to UTC) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from applicationinsights-dotnet.