Comments (3)
Proposed solution: if we are keeping both middlewares:
replace context.Items.Add(TraceHeaderItemKey, traceHeader);
by TryAdd, if the key already exists, there are two middlewares and the second one could skip the execution.
from sentry-dotnet.
I'm not really sold on the idea. The SDK is not supposed to be initialized twice. It not working seems more like by design to me than making it work via a workaround.
from sentry-dotnet.
the SDK was designed to be started once, but I'd say it's OK to degrade here instead of throwing that error.
How about we TryAdd and if it returns false, we Debug log: "Sentry trace was already added. Did you initialize Sentry twice?"
from sentry-dotnet.
Related Issues (20)
- Blocking detection
- Enable AVD caching during Android Device Tests
- Integrationtests for `Session`
- No service for type 'Sentry.IHub' has been registered
- MAUI: Option for adding button text to breadcrumbs HOT 1
- Connecting Queries with Code
- Metrics not showing in the Sentry Dashboard
- ArgumentNullException When No DSN Is Configured (4.X) HOT 19
- Sentry.Samples.AspNetCore.Mvc is missing tunneling config
- Migration guide: How to disable Sentry when no DSN supplied HOT 9
- AddAspNet() gone in 4.x HOT 1
- Allow for optional separation into services.AddSentry and app.UseSentry HOT 3
- Should config values from Environment variables override other settings? HOT 1
- AppDomainProcessExitIntegration doesn't get unregistered when Sentry is disposed of/closed HOT 1
- Align configuration binding precedence with Microsoft priorities HOT 2
- Sentry init fails with empty DSN string HOT 2
- Filters not being honored HOT 2
- Support for Crons on Quartz HOT 1
- Profiling startup failure HOT 1
- Relay rejecting profiler data
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 sentry-dotnet.