opentelemetry-android icon indicating copy to clipboard operation
opentelemetry-android copied to clipboard

Draft: Add instrumentation for otel span annotations

Open Kleszczu98 opened this issue 1 month ago • 3 comments

Example byteBuddy implementation of auto-instrumentation of the following annotations:

https://github.com/open-telemetry/opentelemetry-android/issues/412

Kleszczu98 avatar Oct 29 '25 09:10 Kleszczu98

CLA Signed

The committers listed above are authorized under a signed CLA.

  • :white_check_mark: login: Kleszczu98 / name: Michał Kleszcz (25b406a481373df2f99a2f464550527c816167e8, e76042920603cc6cce5ca35a87ef0da10bedfeef, ed7947d31784a0807972f3fe3690d745f320544d)

@Kleszczu98 hi. The title of this still says it's a draft PR, but it's not marked as such. Please remove the word Draft from the title if it's ready for review, or mark it truly as draft by clicking "Convert to draft". You'll will also need to sign the Contributor License Agreement (CLA).

Thanks!

breedx-splk avatar Oct 31 '25 18:10 breedx-splk

Codecov Report

:x: Patch coverage is 0% with 83 lines in your changes missing coverage. Please review. :white_check_mark: Project coverage is 62.33%. Comparing base (289fdab) to head (ed7947d). :warning: Report is 16 commits behind head on main.

Files with missing lines Patch % Lines
...ation/agent/spanannotation/SpanAnnotationPlugin.kt 0.00% 30 Missing :warning:
...entation/library/spanannotation/HelperFunctions.kt 0.00% 25 Missing :warning:
...anannotation/advice/method/WithSpanMethodAdvice.kt 0.00% 9 Missing :warning:
...ry/spanannotation/SpanAnnotationInstrumentation.kt 0.00% 8 Missing :warning:
...otation/advice/method/SpanAttributeMethodAdvice.kt 0.00% 5 Missing :warning:
.../advice/method/AddingSpanAttributesMethodAdvice.kt 0.00% 4 Missing :warning:
.../instrumentation/library/spanannotation/TestApp.kt 0.00% 2 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1348      +/-   ##
==========================================
- Coverage   64.17%   62.33%   -1.84%     
==========================================
  Files         153      164      +11     
  Lines        3059     3181     +122     
  Branches      315      328      +13     
==========================================
+ Hits         1963     1983      +20     
- Misses       1007     1105      +98     
- Partials       89       93       +4     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov[bot] avatar Nov 05 '25 12:11 codecov[bot]