In the documentation on how to use opencensus-python
to submit traces to Azure Application Insights, it's spelled out how to add additional information to the customDimensions
field. That is,
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}})
becomes
in the Application Insights UI.
That's all well and good, but what is the intended way to remove the items from customDimensions
that are included by default; i.e. things like fileName
and process
?