Skip to content

Commit d672c93

Browse files
committed
Fix indentation
1 parent 04b9f2c commit d672c93

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
@@ -972,9 +972,10 @@ def should_drop_logs_for_unsampled_trace(
972972
) -> bool:
973973
"""
974974
Determines whether the logger should only process log records associated with sampled traces.
975-
If not explicitly set, the `trace_based` parameter is defaulted to `false`. If `trace_based` is `true`, log records associated with unsampled traces MUST
976-
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.
977-
Log records that aren't associated with a trace context are not affected by this parameter and therefore bypass trace-based filtering.
975+
If not explicitly set, the `trace_based` parameter is set to `false`. If `trace_based` is `true`, log records associated with unsampled traces
976+
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
977+
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
978+
trace-based filtering.
978979
"""
979980
if trace_based:
980981
if record.context is not None:

0 commit comments

Comments
 (0)