[QUERY] How to use a custom log processor #43623
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Monitor - Exporter
Monitor OpenTelemetry Exporter
needs-team-attention
This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
This issue is responsible by Azure service team.
Library name and version
Azure.Monitor.OpenTelemetry.AspNetCore v1.1
Query/Question
I have implemented a custom log processor to obfuscate sensitive log data. As per the OpenTelemetry docs here, it looks something like this:
My issue is understanding how I can register this processor in my
Program/StartUp.cs
in conjunction with the Azure Monitor Distro, as theUseAzureMonitor()
extension method handles log configuration behind the scenes, and it doesn't seem like there is a way to add a Log Processor in the same way as you can add a Trace Processor or Metrics Processor as shown in the docs.Any help would be greatly appreciated. Thanks!
Environment
.NET 8
The text was updated successfully, but these errors were encountered: