Skip to content

fixing wordpress autoinstrumentation span scopes #107

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

Merged
merged 1 commit into from
Feb 7, 2023

Conversation

brettmc
Copy link
Collaborator

@brettmc brettmc commented Feb 7, 2023

Calling Span::activate() creates a debug scope which wraps the real scope, but the debug scope is not retrievable. This causes wordpress auto-instrumented to complain about dangling debug scopes, even though the real scope was detached.
The right way to do it is to Context::storage()->attach()...

Calling Span::activate() creates a debug scope which wraps the real scope, but the debug scope is not retrievable
@brettmc brettmc requested a review from a team February 7, 2023 00:08
@codecov
Copy link

codecov bot commented Feb 7, 2023

Codecov Report

Merging #107 (5bb73b1) into main (c65d122) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main     #107   +/-   ##
=========================================
  Coverage     64.42%   64.42%           
  Complexity      399      399           
=========================================
  Files            42       42           
  Lines          1380     1380           
=========================================
  Hits            889      889           
  Misses          491      491           
Flag Coverage Δ
7.4 81.76% <ø> (ø)
8.0 64.24% <ø> (ø)
8.1 64.32% <ø> (ø)
8.2 64.32% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c65d122...5bb73b1. Read the comment docs.

@pdelewski pdelewski merged commit 5c51612 into open-telemetry:main Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants