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

Add OpenCensus Zipkin instrumentation to Flask #78

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

flands
Copy link
Collaborator

@flands flands commented Nov 4, 2018

Also instrument parse and callapi functions

Also instrument parse and callapi functions
@ellieayla
Copy link
Contributor

Interesting. This adds span-tracing to all inbound webhooks. What happens if there's no ZipKin server running on localhost? Looks like a timeout or connection-refused and a bunch of logging from https://github.com/census-instrumentation/opencensus-python/blob/master/opencensus/trace/exporters/zipkin_exporter.py#L109.

@flands
Copy link
Collaborator Author

flands commented Nov 5, 2018

True, refactored the code to only enable tracing if ZIPKIN_HOSTNAME is specified -- this eliminates the errors for such a scenario.

This means the tracer does not need to be defined for every route.
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