Skip to content
This repository has been archived by the owner on Sep 18, 2018. It is now read-only.

Utilize baseplate request tracing in activity gateway/service #11

Merged

Conversation

ckwang8128
Copy link
Contributor

This enables basic span trace logging via Baseplate's tracing integration.

馃憮 @spladug

@ckwang8128
Copy link
Contributor Author

Going to fix the tests. D'oh!

@@ -30,6 +34,11 @@ factory = reddit_service_activitygateway:make_wsgi_app
metrics.namespace = activity_gateway
metrics.endpoint =

; request tracing
tracing.enabled = true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

like on the puppet side, i think it'd be nicer to the user to just branch on whether or not the endpoint is defined or not rather than having a separate flag. this is consistent with the metrics client as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to provide flexibility for turning on trace calculation and management without needing to specify an endpoint for it (e.g. still logging locally). See https://github.com/reddit/baseplate/blob/master/baseplate/diagnostics/tracing.py#L60 for where I already branch on whether an endpoint exists for remote recording.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after IRL discussion we're going to let the tracing integration always be on; if the endpoint is undefined here it'll just log with the Baseplate NullRecorder

@spladug
Copy link
Contributor

spladug commented Dec 1, 2016

馃拝 nit, commit message subject line is too long ("...")

super exciting to see this happening, nice!

@ckwang8128
Copy link
Contributor Author

Test failures will happen until we upload the new Baseplate package.

馃拠

@spladug
Copy link
Contributor

spladug commented Dec 1, 2016

馃悷 !

@ckwang8128 ckwang8128 merged commit bf24e42 into reddit-archive:master Dec 1, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants