This commit is contained in:
jerevoss 2023-05-02 15:31:52 -07:00
Родитель 80472be2b9
Коммит 99431100a0
2 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -59,6 +59,9 @@ def configure_azure_monitor(**kwargs) -> None:
end user to configure OpenTelemetry and Azure monitor components. The
configuration can be done via arguments passed to this function.
:keyword str connection_string: Connection string for your Application Insights resource.
:keyword ManagedIdentityCredential/ClientSecretCredential credential: Token credential, such as ManagedIdentityCredential or ClientSecretCredential, used for Azure Active Directory (AAD) authentication. Defaults to None.
:keyword bool disable_offline_storage: Boolean value to determine whether to disable storing failed telemetry records for retry. Defaults to `False`.
:keyword str storage_directory: Storage directory in which to store retry files. Defaults to `<tempfile.gettempdir()>/Microsoft/AzureMonitor/opentelemetry-python-<your-instrumentation-key>`.
:rtype: None
"""

Просмотреть файл

@ -12,7 +12,7 @@ from opentelemetry import trace
# 0.1 means approximately 10% of your traces are sent
configure_azure_monitor(
# connection_string="<your-connection-string>",
connection_string="<your-connection-string>",
)
tracer = trace.get_tracer(__name__)