Skip to content

Add OpenCensus Zipkin instrumentation to Flask#78

Open
flands wants to merge 3 commits into
masterfrom
flask
Open

Add OpenCensus Zipkin instrumentation to Flask#78
flands wants to merge 3 commits into
masterfrom
flask

Conversation

@flands
Copy link
Copy Markdown
Collaborator

@flands flands commented Nov 4, 2018

Also instrument parse and callapi functions

Also instrument parse and callapi functions
@ellieayla
Copy link
Copy Markdown
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
Copy Markdown
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