Skip to content

Potel Sampling #3501

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Sep 10, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Made name not static
  • Loading branch information
antonpirker committed Sep 5, 2024
commit e859aefa67b349e51eaa1213ee6dbc0451a7988f
4 changes: 2 additions & 2 deletions sentry_sdk/integrations/opentelemetry/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def should_sample(
sample_rate = 1.0

# If the sample rate is invalid, drop the span
if not is_valid_sample_rate(sample_rate, source="SentrySampler"):
if not is_valid_sample_rate(sample_rate, source=self.__class__.__name__):
logger.warning(
f"[Tracing] Discarding {name} because of invalid sample rate."
)
Expand All @@ -121,4 +121,4 @@ def should_sample(

def get_description(self) -> str:
print("YYYYYYYYYYYYYYYY")
return "SentrySampler"
return self.__class__.__name__
Loading