Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
sentrivana committed Dec 3, 2024
1 parent 0c46068 commit 10b3d22
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sentry_sdk/integrations/opentelemetry/span_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def _add_root_span(self, span, parent_span):
set_sentry_meta(span, "root_span", span)

def _start_profile(self, span):
# type: (Span, Optional[Context]) -> None
# type: (Span) -> None
try_autostart_continuous_profiler()
profiler_id = get_profiler_id()
thread_id, thread_name = get_current_thread_meta()
Expand Down
9 changes: 4 additions & 5 deletions tests/tracing/test_sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,9 @@ def dummy_profiles_sampler(sampling_context):

sentry_init(traces_sample_rate=1.0, profiles_sampler=dummy_profiles_sampler)

with sentry_sdk.continue_trace(
{
"sentry-trace": f"12312012123120121231201212312012-1121201211212012-{int(parent_sampling_decision)}"
}
):
sentry_trace = "12312012123120121231201212312012-1121201211212012-{}".format(
int(sampling_decision=parent_sampling_decision)
)
with sentry_sdk.continue_trace({"sentry-trace": sentry_trace}):
with sentry_sdk.start_span(name="dogpark", op="op"):
pass

0 comments on commit 10b3d22

Please sign in to comment.