Closed rossgrambo closed 3 months ago
Telemetry Publisher vs Initializer relationship:
AddApplicationInsightsTelemetryPublisher
publishes Impression events and doesn't directly require the Initializer. I think it's okay to add these together- because it's very unlikely someone will want the publisher and not want the initializer.
I see three improvements here
(1) Add httpcontext accessor in WithTargeting (2) Add telemetry initializer when adding telemetry publisher (3) Add syntax sugar helper for middleware
(1) Agree to have it. The default targeting context accessor doesn't make sense without http context accessor being present. (2) Agree to have it. The scenario for feature management telemetry is to emit targeting id if present. (3) Doesn't seem helpful enough to me at this point to have it.
Adjusted name of adding App Insights and removed middleware helper. Adjusted PR description to reflect the latest.
.AddApplicationInsightsTelemetry~Publisher~(); ~app.UseFeatureManagement();~
Preview now with app insights telemetry looks like this:
Making a few opinionated changes- we can make it: