-
Notifications
You must be signed in to change notification settings - Fork 650
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
Consistently return ScopeShim and SpanShim objects in the OT shim #242
Labels
release:required-for-ga
To be resolved before GA release
shim
OpenTracing or OpenCensus compatibility
tracing
Comments
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Jul 17, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Jul 17, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Jul 18, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Jul 18, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Jul 20, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Jul 20, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Jul 20, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Jul 20, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Jul 20, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Jul 21, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Jul 22, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Jul 22, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Jul 22, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Jul 31, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Jul 31, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Jul 31, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Jul 31, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Aug 5, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Aug 5, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Aug 5, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Aug 5, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Aug 5, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Aug 5, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Aug 5, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Aug 5, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Aug 6, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Aug 6, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Aug 6, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Aug 6, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Aug 6, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Aug 6, 2020
ocelotl
added a commit
to ocelotl/opentelemetry-python
that referenced
this issue
Aug 6, 2020
srikanthccv
pushed a commit
to srikanthccv/opentelemetry-python
that referenced
this issue
Nov 1, 2020
closes open-telemetry#242 Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca>
srikanthccv
pushed a commit
to srikanthccv/opentelemetry-python
that referenced
this issue
Nov 1, 2020
closes open-telemetry#242 Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
release:required-for-ga
To be resolved before GA release
shim
OpenTracing or OpenCensus compatibility
tracing
In its current implementation, the OT shim doesn't preserve
ScopeShim
andSpanShim
objects after creating them. This results in situations such as the following:start_active_span()
, which results in aScopeShim
object containing aSpanShim
object.active_span
property.ScopeShim
returned byactive_span
isn't the same object as the one returned fromstart_active_span()
.The reason for the behavior described above is that we only keep state in the OpenTelemetry tracer. We don't really have an OpenTracing tracer or scope manager which keep track of spans. When the user queries the shim's API for the currently-active span for example, we construct a new object from the existing OpenTelemetry object. So the returned object contains the same OpenTelemetry span, but the wrapper objects themselves aren't the same OpenTracing objects as the ones returned to the user during span creation and activation.
There doesn't seem to be an easy way to address this issue. @Oberon00 has some ideas on how this can be implemented.
opentelemetry-python/ext/opentelemetry-ext-opentracing-shim/src/opentelemetry/ext/opentracing_shim/__init__.py
Lines 158 to 171 in 26d56c0
opentelemetry-python/ext/opentelemetry-ext-opentracing-shim/tests/test_shim.py
Lines 63 to 67 in 26d56c0
opentelemetry-python/ext/opentelemetry-ext-opentracing-shim/tests/test_shim.py
Lines 283 to 285 in 26d56c0
Relevant discussions:
#211 (comment)
#161 (comment)
The text was updated successfully, but these errors were encountered: