diff options
author | S. Solomon Darnell | 2025-03-28 21:52:21 -0500 |
---|---|---|
committer | S. Solomon Darnell | 2025-03-28 21:52:21 -0500 |
commit | 4a52a71956a8d46fcb7294ac71734504bb09bcc2 (patch) | |
tree | ee3dc5af3b6313e921cd920906356f5d4febc4ed /.venv/lib/python3.12/site-packages/azure/monitor/opentelemetry/_constants.py | |
parent | cc961e04ba734dd72309fb548a2f97d67d578813 (diff) | |
download | gn-ai-master.tar.gz |
Diffstat (limited to '.venv/lib/python3.12/site-packages/azure/monitor/opentelemetry/_constants.py')
-rw-r--r-- | .venv/lib/python3.12/site-packages/azure/monitor/opentelemetry/_constants.py | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/.venv/lib/python3.12/site-packages/azure/monitor/opentelemetry/_constants.py b/.venv/lib/python3.12/site-packages/azure/monitor/opentelemetry/_constants.py new file mode 100644 index 00000000..cc3ed6cb --- /dev/null +++ b/.venv/lib/python3.12/site-packages/azure/monitor/opentelemetry/_constants.py @@ -0,0 +1,62 @@ +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License in the project root for +# license information. +# -------------------------------------------------------------------------- + +from azure.monitor.opentelemetry.exporter._constants import ( # pylint: disable=import-error,no-name-in-module + _AZURE_MONITOR_DISTRO_VERSION_ARG, +) + +# --------------------Distro Configuration------------------------------------------ + +CONNECTION_STRING_ARG = "connection_string" +ENABLE_LIVE_METRICS_ARG = "enable_live_metrics" +DISABLE_AZURE_CORE_TRACING_ARG = "disable_azure_core_tracing" +DISABLE_LOGGING_ARG = "disable_logging" +DISABLE_METRICS_ARG = "disable_metrics" +DISABLE_TRACING_ARG = "disable_tracing" +DISTRO_VERSION_ARG = _AZURE_MONITOR_DISTRO_VERSION_ARG +LOGGER_NAME_ARG = "logger_name" +INSTRUMENTATION_OPTIONS_ARG = "instrumentation_options" +RESOURCE_ARG = "resource" +SAMPLING_RATIO_ARG = "sampling_ratio" +SPAN_PROCESSORS_ARG = "span_processors" +VIEWS_ARG = "views" + + +# --------------------Autoinstrumentation Configuration------------------------------------------ + +LOG_EXPORTER_NAMES_ARG = "log_exporter_names" +METRIC_EXPORTER_NAMES_ARG = "metric_exporter_names" +SAMPLER_ARG = "sampler" +TRACE_EXPORTER_NAMES_ARG = "trace_exporter_names" + + +# --------------------Diagnostic/status logging------------------------------ + +_LOG_PATH_LINUX = "/var/log/applicationinsights" +_LOG_PATH_WINDOWS = "\\LogFiles\\ApplicationInsights" +_PREVIEW_ENTRY_POINT_WARNING = "Autoinstrumentation for the Azure Monitor OpenTelemetry Distro is in preview." + + +# --------------------Instrumentations------------------------------ + +# Opt-out +_AZURE_SDK_INSTRUMENTATION_NAME = "azure_sdk" +_FULLY_SUPPORTED_INSTRUMENTED_LIBRARIES = ( + _AZURE_SDK_INSTRUMENTATION_NAME, + "django", + "fastapi", + "flask", + "psycopg2", + "requests", + "urllib", + "urllib3", +) +# Opt-in +_PREVIEW_INSTRUMENTED_LIBRARIES = () +_ALL_SUPPORTED_INSTRUMENTED_LIBRARIES = _FULLY_SUPPORTED_INSTRUMENTED_LIBRARIES + _PREVIEW_INSTRUMENTED_LIBRARIES + +_AZURE_APP_SERVICE_RESOURCE_DETECTOR_NAME = "azure_app_service" +_AZURE_VM_RESOURCE_DETECTOR_NAME = "azure_vm" |