open-telemetry / opentelemetry-python-contrib

OpenTelemetry instrumentation for Python modules
https://opentelemetry.io
Apache License 2.0
739 stars 612 forks source link

Add click instrumentation #2994

Open xrmx opened 1 week ago

xrmx commented 1 week ago

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.

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

Does This PR Require a Core Repo Change?

Checklist:

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

xrmx commented 1 day ago

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