Skip to content
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

Open telemetry exception raised because of type error #6938

Closed
2 tasks done
bisgaard-itis opened this issue Dec 11, 2024 · 1 comment · Fixed by #6941
Closed
2 tasks done

Open telemetry exception raised because of type error #6938

bisgaard-itis opened this issue Dec 11, 2024 · 1 comment · Fixed by #6941
Assignees
Labels
t:maintenance Some planned maintenance work
Milestone

Comments

@bisgaard-itis
Copy link
Contributor

bisgaard-itis commented Dec 11, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Planned changes

Sometimes we see the following issue in Graylog:

log_level=ERROR | log_timestamp=2024-12-11 05:00:10,293 | log_source=opentelemetry.context:detach(154) | log_uid=None | log_oec=None| log_trace_id=d71b9949c21c98ff34df98494d746301 | log_span_id=b2f25cb4b82b7da3 | log_resource.service.name= | log_trace_sampled=True] | log_msg=Failed to detach context
Traceback (most recent call last):
  File "/home/scu/.venv/lib/python3.11/site-packages/opentelemetry/context/__init__.py", line 152, in detach
    _RUNTIME_CONTEXT.detach(token)
  File "/home/scu/.venv/lib/python3.11/site-packages/opentelemetry/context/contextvars_context.py", line 50, in detach
    self._current_context.reset(token)  # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected an instance of Token, got {'current-span-b4992ee6-0846-47e8-89e2-8f2a69add41a': _Span(name="POST /v2/computations", context=SpanContext(trace_id=0xd71b9949c21c98ff34df98494d746301, span_id=0xb2f25cb4b82b7da3, trace_flags=0x01, trace_state=[], is_remote=False))}

Todo

@bisgaard-itis bisgaard-itis added the t:maintenance Some planned maintenance work label Dec 11, 2024
@bisgaard-itis bisgaard-itis added this to the Event Horizon milestone Dec 11, 2024
@bisgaard-itis
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t:maintenance Some planned maintenance work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants