Open marcus13371337 opened 1 week ago
@marcus13371337 the option is ready to be used, I will make sure is documented, we missed that when we released the package, according to what you want you should turn it off as is enabled by default.
Cool thanks for the clarification!
Is your feature request related to a problem? Please describe. Currently, we are using this package to track traces and logs. We want 100% of the logs to be reported but we are fine with a sampling-rate for traces.
Describe the solution you'd like It seems as this repository already contain this functionality, but it's unclear if it's ready to be used or not. That by providing the following flag to
options
enableTraceBasedSamplingForLogs
Additional context It seems as the feature is already implemented here: https://github.com/Azure/azure-sdk-for-js/blob/e1702eaaa81d388012cc25b3bfa4a8d3018f7467/sdk/monitor/monitor-opentelemetry/src/logs/batchLogRecordProcessor.ts#L24C23-L24C54
But in the readme I can find the following:
So basically, my question is, is the
enableTraceBasedSamplingForLogs
-flag ready to be used in production?