使用opencensus-python时从Application Insights中删除customDimensions项

问题描述

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}})

成为

enter image description here

在Application Insights用户界面中。

这很好,但是从customDimensions中删除默认包含的项目的预期方法是什么;例如fileNameprocess之类的东西?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)