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

Restructure tracers#97

Merged
liyanhui1228 merged 2 commits intocensus-instrumentation:masterfrom
liyanhui1228:rename_tracer
Dec 12, 2017
Merged

Restructure tracers#97
liyanhui1228 merged 2 commits intocensus-instrumentation:masterfrom
liyanhui1228:rename_tracer

Conversation

@liyanhui1228
Copy link
Contributor

@liyanhui1228 liyanhui1228 commented Dec 12, 2017

  • Rename RequestTracer to Tracer
  • Remove the webapp2_tracer which should be in the ext module

@liyanhui1228 liyanhui1228 requested a review from duggelz December 12, 2017 20:27
.. code:: python

from opencensus.trace import request_tracer
from opencensus.trace import tracer as tracer_module
Copy link

Choose a reason for hiding this comment

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

Yes, this looks good. I always struggle with the "package/module/class/variable" naming, since I have up to four things but only two ways (Uppercase/lowercase) to name them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

README.rst Outdated
.. code:: python

from opencensus.trace.tracer import webapp2_tracer
from opencensus.trace.tracers import webapp2_tracer
Copy link

Choose a reason for hiding this comment

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

I can't find the webapp2 files, are you going to add them to the 'ext' directory in this PR or a later one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Deleted it for now, probably add it in later PR.

@liyanhui1228 liyanhui1228 merged commit cfcfda5 into census-instrumentation:master Dec 12, 2017
@liyanhui1228 liyanhui1228 deleted the rename_tracer branch December 12, 2017 21:50
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.

2 participants