Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Support trace propagation in httplib integration#237

Merged
SergeyKanzhelev merged 1 commit intocensus-instrumentation:masterfrom
reyang:reiley_redo_pr220
Jul 19, 2018
Merged

Support trace propagation in httplib integration#237
SergeyKanzhelev merged 1 commit intocensus-instrumentation:masterfrom
reyang:reiley_redo_pr220

Conversation

@reyang
Copy link
Copy Markdown
Contributor

@reyang reyang commented Jul 19, 2018

With this change, the httplib will propagate context while sending requests.

Sample code:


from opencensus.trace import config_integration
from opencensus.trace.tracer import Tracer

config_integration.trace_integrations(['httplib'])
tracer = Tracer()

def main():
	with tracer.span(name = 'client'):
		response = requests.get('http://localhost:5000')
		print(response)

if __name__ == '__main__':
	main()

@reyang
Copy link
Copy Markdown
Contributor Author

reyang commented Jul 19, 2018

This is the same change as #220, created a new PR as the previous one was closed accidentally when I was trying to rebase.

@SergeyKanzhelev
Copy link
Copy Markdown
Member

seems like intermittent failure in CI. Can you push empty commit to re-start the CI job please?

@bogdandrutu
Copy link
Copy Markdown

@SergeyKanzhelev I manually forced rebuild.

@SergeyKanzhelev SergeyKanzhelev merged commit 9cd14d3 into census-instrumentation:master Jul 19, 2018
@reyang reyang deleted the reiley_redo_pr220 branch July 23, 2018 10:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants