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

Cherrypy Test and docs #3

Merged
merged 5 commits into from
Nov 29, 2022
Merged

Cherrypy Test and docs #3

merged 5 commits into from
Nov 29, 2022

Conversation

rahulmukherjee68
Copy link

@rahulmukherjee68 rahulmukherjee68 commented Nov 28, 2022

…or instrumentation

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@rahulmukherjee68 rahulmukherjee68 changed the title added new testcases related to basic rest api calls and spans check f… Cherrypy Test and docs Nov 28, 2022

|pypi|

.. |pypi| image:: https://badge.fury.io/py/opentelemetry-instrumentation-cherrypy.svg
Copy link
Owner

Choose a reason for hiding this comment

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

Is it a working link?

|pypi|

.. |pypi| image:: https://badge.fury.io/py/opentelemetry-instrumentation-cherrypy.svg
:target: https://pypi.org/project/opentelemetry-instrumentation-cherrypy/
Copy link
Owner

Choose a reason for hiding this comment

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

This link is also not working. We need to fix this.

Exclude lists
*************
To exclude certain URLs from being tracked, set the environment variable ``OTEL_PYTHON_CHERRYPY_EXCLUDED_URLS``
(or ``OTEL_PYTHON_CHERRYPY_URLS`` as fallback) with comma delimited regexes representing which URLs to exclude.
Copy link
Owner

Choose a reason for hiding this comment

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

It should be OTEL_PYTHON_EXCLUDED_URLS.

References
----------

* `OpenTelemetry CherryPy Instrumentation <https://opentelemetry-python-contrib.readthedocs.io/en/latest/instrumentation/cherrypy/cherrypy.html>`_
Copy link
Owner

Choose a reason for hiding this comment

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

This is also not working link.

"os.environ",
{
"OTEL_PYTHON_CHERRYPY_EXCLUDED_URLS": "ping",
"OTEL_PYTHON_CHERRYPY_TRACED_REQUEST_ATTRS": "query_string",
Copy link
Owner

Choose a reason for hiding this comment

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

Where do we add this env variable?
I don't see implementation for using this env variable.


return cherrypy.tree.mount(CherryPyApp())

setup_server = staticmethod(setup_server)
Copy link
Owner

Choose a reason for hiding this comment

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

I think using @staticmethod decorator would be better.

@TheAnshul756 TheAnshul756 merged commit aedbcd1 into TheAnshul756:cherrypy-instrumentation Nov 29, 2022
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