-
Notifications
You must be signed in to change notification settings - Fork 112
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
Adds telemetry pipeline #259
Conversation
…nd a publisher instance for app insights.
...pInsightsTelemetryPublisher/Microsoft.FeatureManagement.AppInsightsTelemetryPublisher.csproj
Outdated
Show resolved
Hide resolved
src/Microsoft.FeatureManagement.AppInsightsTelemetryPublisher/ServiceCollectionExtensions.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.FeatureManagement/Targeting/ContextualTargetingFilter.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.FeatureManagement.AppInsightsTelemetryPublisher/ServiceCollectionExtensions.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.FeatureManagement.AppInsightsTelemetryPublisher/ServiceCollectionExtensions.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.FeatureManagement.AppInsightsTelemetryPublisher/TelemetryPublisherAppInsights.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Jimmy Campbell <jimmyca@microsoft.com>
Co-authored-by: Jimmy Campbell <jimmyca@microsoft.com>
…TelemetryPublisherAppInsights.cs Co-authored-by: Jimmy Campbell <jimmyca@microsoft.com>
src/Microsoft.FeatureManagement.AppInsightsTelemetryPublisher/TelemetryPublisherAppInsights.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Jimmy Campbell <jimmyca@microsoft.com>
…eatureManagement-Dotnet into rossgrambo/telemetry
Created another PR that handles updating the build targets to Net6 and Net7 #271 |
Merged main into preview and persisted that here. Meaning we now test against/target net48 & net6.0 & net7.0 |
src/Microsoft.FeatureManagement/ConfigurationFeatureDefinitionProvider.cs
Show resolved
Hide resolved
src/Microsoft.FeatureManagement/ConfigurationFeatureDefinitionProvider.cs
Outdated
Show resolved
Hide resolved
Ooooooooooooo AM EXCITE!!!! |
|
||
telemetryEnabled = configurationSection.GetValue<bool>("TelemetryEnabled"); | ||
|
||
IConfigurationSection telemetryMetadataSection = configurationSection.GetSection("TelemetryMetadata"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should "TelemetryMetadata" be moved into ConfigurationFields.cs as a const string?
@@ -283,6 +287,17 @@ We support | |||
variants.Add(variant); | |||
} | |||
} | |||
|
|||
telemetryEnabled = configurationSection.GetValue<bool>("TelemetryEnabled"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should "TelemetryEnabled" be moved into ConfigurationFields.cs as a const string?
@@ -142,6 +146,16 @@ private async Task<bool> IsEnabledWithVariantsAsync<TContext>(string feature, TC | |||
await sessionManager.SetAsync(feature, isFeatureEnabled).ConfigureAwait(false); | |||
} | |||
|
|||
if (featureDefinition.TelemetryEnabled) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (featureDefinition != null && featureDefinition.TelemetryEnabled)
Adds an evaluation event, publisher interface, and an implementation of the publisher for app insights.
This is the first of multiple PRs to support Telemetry. The goal of this PR is to empower developers to emit telemetry.
Excluded the example app from this PR to make reviews easier.
Also excluded is a way for developers to include or exclude fields. Currently the schema is declared inline.