frigus02 / opentelemetry-application-insights

OpenTelemetry exporter for Azure Application Insights
MIT License
22 stars 12 forks source link

live metrics: Replace channel with mutex #64

Closed frigus02 closed 8 months ago

frigus02 commented 8 months ago

Use channel only for the stop message. Use AtomicBool for is_collecting and Mutex for metrics.

This simplifies the setup. No need to worry about the channel size. The mutex is only locked while collecting and it seems fast enough.