edits
This commit is contained in:
Родитель
80472be2b9
Коммит
99431100a0
|
@ -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__)
|
||||
|
|
Загрузка…
Ссылка в новой задаче