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 click instrumentation #2994

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

xrmx
Copy link
Contributor

@xrmx xrmx commented Nov 12, 2024

Description

This adds a basic instrumentation to trace click commands (as used by flask too) as internal spans.

Fixes #2926

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

  • tox -e py310-test-instrumentation-click

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

@xrmx xrmx requested a review from a team as a code owner November 12, 2024 10:13
tox.ini Outdated Show resolved Hide resolved
@xrmx xrmx marked this pull request as draft November 20, 2024 14:07
@xrmx
Copy link
Contributor Author

xrmx commented Nov 20, 2024

Made draft waiting for the semconv proposal to get some agreement.

@xrmx xrmx marked this pull request as ready for review November 21, 2024 13:24
@@ -4407,111 +4515,3 @@ jobs:

- name: Run tests
run: tox -e py312-test-instrumentation-psycopg2 -- -ra

py38-test-instrumentation-psycopg_ubuntu-latest:
Copy link
Contributor

Choose a reason for hiding this comment

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

I take it this move into the other file was done by generate_workflows?

Copy link
Contributor

@tammy-baylis-swi tammy-baylis-swi left a comment

Choose a reason for hiding this comment

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

Thank you for all the semconv work. I think this looks good

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.

flask: create spans for CLI commands
4 participants