ApplicationInsights-Java icon indicating copy to clipboard operation
ApplicationInsights-Java copied to clipboard

DRAFT: Fix log sampling behavior

Open trask opened this issue 2 years ago • 0 comments

DRAFT b/c even though it's changing undocumented behavior, we should consider waiting to merge until ready for version bump to 3.3.0.

Logs being captured as spans is a temporary implementation detail that we need to hide, since it will be changing once OpenTelemetry logs are stable and can be used instead.

Currently we only support single default behavior when it comes to log sampling:

  • If a log is not part of a trace, capture it.
  • If a log is part of a trace, sample it if the trace is being sampled.

trask avatar Nov 29 '21 23:11 trask