File tree Expand file tree Collapse file tree
opentelemetry-exporter-gcp-trace/src/opentelemetry/exporter/cloud_trace
instrumentation-quickstart Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,5 +17,5 @@ setuptools==69.5.1
1717
1818# pinned for snapshot tests. this should be bumped regularly and snapshots updated by running
1919# tox -f py311-test -- --snapshot-update
20- opentelemetry-api==1.39 .0
21- opentelemetry-sdk==1.39 .0
20+ opentelemetry-api==1.41 .0
21+ opentelemetry-sdk==1.41 .0
Original file line number Diff line number Diff line change @@ -222,6 +222,9 @@ def _translate_to_cloud_trace(
222222
223223 for span in spans :
224224 ctx = span .get_span_context ()
225+ if ctx is None :
226+ # Should not happen at runtime, but needed to satisfy mypy
227+ continue
225228 trace_id = format_trace_id (ctx .trace_id )
226229 span_id = format_span_id (ctx .span_id )
227230 span_name = "projects/{}/traces/{}/spans/{}" .format (
You can’t perform that action at this time.
0 commit comments