Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration
Encapsulates the global telemetry configuration typically loaded from the ApplicationInsights.config file.
Gets or sets the connection string.
Gets or sets a value indicating whether offline storage is disabled.
When null, the Azure Monitor Exporter default of false (offline storage enabled) is used.
Gets or sets a value indicating whether sending of telemetry to Application Insights is disabled.
Gets or sets a value indicating whether Live Metrics is enabled.
When null, the Azure Monitor Exporter default of true is used.
Gets or sets a value indicating whether trace-based log sampling is enabled.
When null, the Azure Monitor Exporter default of true is used.
Gets or sets the sampling ratio for traces (0.0 to 1.0).
A value of 1.0 means all telemetry is sent, 0.5 means 50% is sent.
When null, rate limiting sampling is used instead.
Gets or sets the directory for offline telemetry storage.
When null, the Azure Monitor Exporter default (system default location) is used.
Gets or sets the number of traces per second for rate-limited sampling.
Rate limited sampling is the default form of sampling.
public TelemetryConfiguration()
Initializes a new instance of the TelemetryConfiguration class.
Creates a new TelemetryConfiguration instance loaded from the ApplicationInsights.config file.
If the configuration file does not exist, the new configuration instance is initialized with minimum defaults
needed to send telemetry to Application Insights.
Creates a new TelemetryConfiguration instance loaded from the specified configuration.
Allows extending the OpenTelemetry builder configuration.
Releases resources used by the current instance of the TelemetryConfiguration class.
Set a TokenCredential for this configuration.