Comments (2)
when lastIKeyLookedUp
does not match the current items ikey, we trigger a app id lookup, and stores ikey to lastIKeyLookedUp
. I believe the issue is relying incorrectly on ApplicationIdProvider to resolve ikey to appid in the very 1st call. its not guaranteed to return app id for the 1st time (because it don't wait for task to complete), but gets it resolved by subsequent calls. The above perf fix prevented asking for appid once lastIKeyLookedUp
is set.
This is an issue with actual AppIdProvider, not with a DictionaryProvider. Functional Tests used DictionaryProvider, hence did not catch the issue.
The fix would be to do look up when lastAppIdUsed is null.
from applicationinsights-aspnetcore.
if (this.lastIKeyLookedUp != requestTelemetry.Context.InstrumentationKey)
{
var appIdResolved = this.applicationIdProvider?.TryGetApplicationId(requestTelemetry.Context.InstrumentationKey, out this.lastAppIdUsed);
if (appIdResolved.HasValue && appIdResolved.Value)
{
this.lastIKeyLookedUp = requestTelemetry.Context.InstrumentationKey;
}
}
from applicationinsights-aspnetcore.
Related Issues (20)
- Instrumentationkey read from appsettings.json even if it is not in Configuration.Providers HOT 1
- System.InvalidCastException exception with .NET Core 3.0 HOT 1
- Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=4.0.4.0 HOT 5
- AspNetCore: This repo is in the process of being migrated
- Timestamp for Event Telemetry in Application Insights Azure Portal get overridden by ingestion time HOT 3
- Initializing TelemetryConfiguration twice can result into DiagnosticListeners to pump events into wrong pipeline HOT 2
- 2.7.1 and 2.8.0-beta1 throws NullReferenceException when used together with AspNetCore 3.0 preview8 HOT 6
- How to disable SQL logging for Azure Functions? HOT 1
- Can I delete Application Insights from project file properties and Connected Services folder? HOT 2
- How to turn off application insights HOT 12
- Question: Is it possible to emit CustomEvent from the ILogger? (by using EventId) HOT 1
- Proposal: Skip version to be in sync with BaseSDK HOT 2
- Direct Use of TelemetryClient best practices? HOT 1
- System.ObjectDisposedException when trying to read request.Body HOT 2
- Conflicts Between Versions Using Asp.Net Core 3.0 HOT 2
- Provide disable/enable flag in ApplicationInsightsServiceOptions for each TelemetryModule present in default list.
- null/Empty ikey from AIServiceOptions is overriding ikey from appsettings.json
- Microsoft.ApplicationInsights.WorkerService - Log4NetAppender Issue HOT 1
- Correct correlation for Microsoft.Azure.Storage.DataMovement HOT 12
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-aspnetcore.