【发布时间】:2024-01-22 20:45:01
【问题描述】:
在 the documentation 关于如何使用 opencensus-python 向 Azure Application Insights 提交跟踪中,详细说明了如何向 customDimensions 字段添加其他信息。也就是说,
import logging
from opencensus.ext.azure.log_exporter import AzureLogHandler
logger = logging.getLogger(__name__)
logger.addHandler(AzureLogHandler(
connection_string='InstrumentationKey=00000000-0000-0000-0000-000000000000')
)
logger.error('blooh')
logger.error('blooh2', extra={'custom_dimensions': {'woot': 42}})
变成
在 Application Insights UI 中。
这一切都很好,但是从customDimensions 中删除默认包含的项目的预期方法是什么?即 fileName 和 process 之类的东西?
【问题讨论】:
标签: python azure azure-application-insights azure-monitoring opencensus