forked from Azure/azure-sdk-for-net
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AzureMonitorExporter] Refactor Environment Variables (Azure#38012)
* refactor Env Vars * cleanup
- Loading branch information
1 parent
0bb8389
commit 688a205
Showing
4 changed files
with
68 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
...onitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/EnvironmentVariableConstants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
namespace Azure.Monitor.OpenTelemetry.Exporter.Internals | ||
{ | ||
internal static class EnvironmentVariableConstants | ||
{ | ||
/// <summary> | ||
/// Available for users to set their Connection String. | ||
/// </summary> | ||
/// <remarks> | ||
/// <see href="https://learn.microsoft.com/azure/azure-monitor/app/opentelemetry-configuration?#connection-string"/>. | ||
/// </remarks> | ||
public const string APPLICATIONINSIGHTS_CONNECTION_STRING = "APPLICATIONINSIGHTS_CONNECTION_STRING"; | ||
|
||
/// <summary> | ||
/// Available for users to opt-out of Statsbeat. | ||
/// </summary> | ||
/// <remarks> | ||
/// <see href="https://learn.microsoft.com/azure/azure-monitor/app/statsbeat"/>. | ||
/// </remarks> | ||
public const string APPLICATIONINSIGHTS_STATSBEAT_DISABLED = "APPLICATIONINSIGHTS_STATSBEAT_DISABLED"; | ||
|
||
/// <summary> | ||
/// INTERNAL ONLY. Used by Statsbeat to identify if the Exporter is running within Azure Functions. | ||
/// </summary> | ||
public const string FUNCTIONS_WORKER_RUNTIME = "FUNCTIONS_WORKER_RUNTIME"; | ||
|
||
/// <summary> | ||
/// INTERNAL ONLY. Used by PersistentStorage to identify a Windows temp directory to save telemetry. | ||
/// </summary> | ||
public const string LOCALAPPDATA = "LOCALAPPDATA"; | ||
|
||
/// <summary> | ||
/// INTERNAL ONLY. Used by PersistentStorage to identify a Windows temp directory to save telemetry. | ||
/// </summary> | ||
public const string TEMP = "TEMP"; | ||
|
||
/// <summary> | ||
/// INTERNAL ONLY. Used by PersistentStorage to identify a Linux temp directory to save telemetry. | ||
/// </summary> | ||
public const string TMPDIR = "TMPDIR"; | ||
|
||
/// <summary> | ||
/// INTERNAL ONLY. Used by Statsbeat to get the App Service Host Name. | ||
/// </summary> | ||
public const string WEBSITE_HOME_STAMPNAME = "WEBSITE_HOME_STAMPNAME"; | ||
|
||
/// <summary> | ||
/// INTERNAL ONLY. Used by Statsbeat to identify Azure Functions. | ||
/// </summary> | ||
public const string WEBSITE_HOSTNAME = "WEBSITE_HOSTNAME"; | ||
|
||
/// <summary> | ||
/// INTERNAL ONLY. Used by Statsbeat to get the App Service Website Name. | ||
/// </summary> | ||
public const string WEBSITE_SITE_NAME = "WEBSITE_SITE_NAME"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters