Skip to content

Commit be2d646

Browse files
committed
Fix indentation
1 parent 3fc82ac commit be2d646

File tree

1 file changed

+4
-3
lines changed
  • opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal

1 file changed

+4
-3
lines changed

opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -959,9 +959,10 @@ def should_drop_logs_for_unsampled_trace(
959959
) -> bool:
960960
"""
961961
Determines whether the logger should only process log records associated with sampled traces.
962-
If not explicitly set, the `trace_based` parameter is defaulted to `false`. If `trace_based` is `true`, log records associated with unsampled traces MUST
963-
be dropped by the `Logger`. A log record is considered associated with an unsampled trace if it has a valid `SpanId` and its `TraceFlags` indicate that the trace is unsampled.
964-
Log records that aren't associated with a trace context are not affected by this parameter and therefore bypass trace-based filtering.
962+
If not explicitly set, the `trace_based` parameter is set to `false`. If `trace_based` is `true`, log records associated with unsampled traces
963+
are dropped by the `Logger`. A log record is considered associated with an unsampled trace if it has a valid `SpanId` and its `TraceFlags` indicate
964+
that the trace is unsampled. A log record that isn't associated with a trace context is not affected by this parameter and therefore bypasses
965+
trace-based filtering.
965966
"""
966967
if trace_based:
967968
if record.context is not None:

0 commit comments

Comments
 (0)