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

Marker Check for Auto HTTP Monkey PAtching #333

Merged
merged 2 commits into from
Jun 26, 2019

Conversation

kolanos
Copy link
Contributor

@kolanos kolanos commented Jun 25, 2019

The monkey patching assumes a marker is present but this may not always
be the case. For example, if the profiler plugin is loaded after the
trace plugin, then the profiler won't be provided an active marker. This
removes marker removal and makes the monkey patching defensive about the
presence of markers.

@kolanos kolanos requested a review from mrickard June 25, 2019 22:10
@codecov
Copy link

codecov bot commented Jun 25, 2019

Codecov Report

Merging #333 into master will decrease coverage by 0.08%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #333      +/-   ##
==========================================
- Coverage   83.66%   83.57%   -0.09%     
==========================================
  Files          36       36              
  Lines        1359     1364       +5     
==========================================
+ Hits         1137     1140       +3     
- Misses        222      224       +2
Impacted Files Coverage Δ
iopipe/contrib/trace/auto_http.py 77.68% <100%> (+1.16%) ⬆️
iopipe/contrib/trace/plugin.py 100% <100%> (ø) ⬆️
iopipe/context.py 80% <0%> (-2.67%) ⬇️

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 5b3e0b9...370ae3e. Read the comment docs.

@kolanos kolanos self-assigned this Jun 25, 2019
The monkey patching assumes a marker is present but this may not always
be the case. For example, if the profiler plugin is loaded after the
trace plugin, then the profiler won't be provided an active marker. This
removes marker removal and makes the monkey patching defensive about the
presence of markers.
@kolanos kolanos force-pushed the trace-profiler-combo branch from 298f370 to 3b45450 Compare June 25, 2019 22:21
@kolanos kolanos merged commit 50af5f8 into iopipe:master Jun 26, 2019
@kolanos kolanos deleted the trace-profiler-combo branch June 26, 2019 08:54
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.

2 participants