Skip to content

Commit 9c77438

Browse files
authored
Update to latest opentelemetry version for testing and update samples lockfiles (#509)
1 parent 30fe4b4 commit 9c77438

5 files changed

Lines changed: 3452 additions & 2287 deletions

File tree

dev-constraints.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

opentelemetry-exporter-gcp-trace/src/opentelemetry/exporter/cloud_trace/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)