Skip to content

Commit

Permalink
fix always_off sampler usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jj22ee committed Jan 31, 2024
1 parent 9bcd91e commit 707344e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ def should_sample(
trace_state: "TraceState" = None,
) -> "SamplingResult":
# TODO: add sampling functionality
return ALWAYS_OFF
return ALWAYS_OFF.should_sample(
self, parent_context, trace_id, name, kind=kind, attributes=attributes, links=links, trace_state=trace_state
)

# pylint: disable=no-self-use
def get_description(self) -> str:
Expand Down

0 comments on commit 707344e

Please sign in to comment.