Skip to content

Commit 0c46068

Browse files
committed
.
1 parent 2dbb4e8 commit 0c46068

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sentry_sdk/integrations/opentelemetry/sampler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,15 +189,15 @@ def get_description(self) -> str:
189189
return self.__class__.__name__
190190

191191

192-
def create_sampling_context(name, attributes, parent_context, trace_id):
193-
# type: (str, Attributes, Context, str) -> dict[str, Any]
192+
def create_sampling_context(name, attributes, parent_span_context, trace_id):
193+
# type: (str, Attributes, SpanContext, str) -> dict[str, Any]
194194
sampling_context = {
195195
"transaction_context": {
196196
"name": name,
197197
"op": attributes.get(SentrySpanAttribute.OP),
198198
"source": attributes.get(SentrySpanAttribute.SOURCE),
199199
},
200-
"parent_sampled": get_parent_sampled(parent_context, trace_id),
200+
"parent_sampled": get_parent_sampled(parent_span_context, trace_id),
201201
}
202202

203203
sampling_context.update(attributes)

0 commit comments

Comments
 (0)