Class AppInsightsConfig
Configuration class for the Azure AppInsights Microsoft.ApplicationInsights.TelemetryClient.
Inheritance
Namespace:Phobos.Monitoring.ApplicationInsights
Assembly:Phobos.Monitoring.ApplicationInsights.dll
Syntax
public sealed class AppInsightsConfig
Constructors
AppInsightsConfig(String, Boolean)
Declaration
public AppInsightsConfig(string instrumentationKey, bool developerMode = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | instrumentationKey | |
System.Boolean | developerMode |
Fields
ConfigFromProcess
Used when no InstrumentationKey is specified in HOCON configuration and the AppInsights telemetry will be configured programmatically from within the host process via Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration.Active.
Declaration
public static readonly AppInsightsConfig ConfigFromProcess
Field Value
Type | Description |
---|---|
AppInsightsConfig |
Remarks
See https://docs.microsoft.com/en-us/azure/application-insights/app-insights-configuration-with-applicationinsights-config for details on how to populate Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration.Active in advance.
Properties
DeveloperMode
When set to true
, indicates that all of the data being
reported is being done so in "test mode" - which will be plotted
differently than production metrics even under the same
Declaration
public bool DeveloperMode { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
InstrumentationKey
Used to authenticate this user against their Application Insights instance.
Declaration
public string InstrumentationKey { get; }
Property Value
Type | Description |
---|---|
System.String |