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

Merged
merged 9 commits into from
Nov 27, 2024
Merged

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 force-pushed the click-instrumentation branch 2 times, most recently from 4ffc5ab to b8c0f9c Compare November 21, 2024 13:23
@xrmx xrmx marked this pull request as ready for review November 21, 2024 13:24
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

@xrmx xrmx requested a review from lzchen November 22, 2024 13:59
@xrmx
Copy link
Contributor Author

xrmx commented Nov 26, 2024

Semconv for cli spans PR has been merged.

@xrmx xrmx force-pushed the click-instrumentation branch from 7a3a089 to 926158e Compare November 27, 2024 08:33
@xrmx xrmx enabled auto-merge (squash) November 27, 2024 08:33
@xrmx xrmx merged commit d330ab3 into open-telemetry:main Nov 27, 2024
573 checks passed
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