DataDog / orchestrion

Automatic compile-time instrumentation of Go code
http://datadoghq.dev/orchestrion/
Apache License 2.0
159 stars 5 forks source link

feat: support segmentio/kafka.go.v0 #293

Open rarguelloF opened 1 month ago

rarguelloF commented 1 month ago

Adds support for instrumenting segmentio/kafka.go.v0

Requires https://github.com/DataDog/dd-trace-go/pull/2885

RomainMuller commented 1 month ago

Can you please separate the unrelated changes in their own PR:

That'll make this PR easier to review & also will allow easier reverting of any individual part of this change.

codecov[bot] commented 3 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 48.28%. Comparing base (70d4d28) to head (2353116).

:exclamation: There is a different number of reports uploaded between BASE (70d4d28) and HEAD (2353116). Click for more details.

HEAD has 33 uploads less than BASE | Flag | BASE (70d4d28) | HEAD (2353116) | |------|------|------| |Linux|6|1| |X64|6|1| |go1.23|4|1| |go1.22|4|0| |unit|2|0| |DRIVER|4|0| |integration|5|0| |GOFLAGS|1|0| |macOS|2|0| |ARM64|2|0|
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #293 +/- ## =========================================== - Coverage 62.37% 48.28% -14.10% =========================================== Files 156 38 -118 Lines 9790 2210 -7580 =========================================== - Hits 6107 1067 -5040 + Misses 3183 1003 -2180 + Partials 500 140 -360 ``` | [Components](https://app.codecov.io/gh/DataDog/orchestrion/pull/293/components?src=pr&el=components&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog) | Coverage Δ | | |---|---|---| | [Generators](https://app.codecov.io/gh/DataDog/orchestrion/pull/293/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog) | `78.38% <ø> (ø)` | | | [Instruments](https://app.codecov.io/gh/DataDog/orchestrion/pull/293/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog) | `∅ <ø> (∅)` | | | [Go Driver](https://app.codecov.io/gh/DataDog/orchestrion/pull/293/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog) | `∅ <ø> (∅)` | | | [Toolexec Driver](https://app.codecov.io/gh/DataDog/orchestrion/pull/293/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog) | `75.74% <ø> (+1.31%)` | :arrow_up: | | [Aspects](https://app.codecov.io/gh/DataDog/orchestrion/pull/293/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog) | `39.97% <ø> (-37.48%)` | :arrow_down: | | [Injector](https://app.codecov.io/gh/DataDog/orchestrion/pull/293/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog) | `44.36% <ø> (-33.23%)` | :arrow_down: | | [Job Server](https://app.codecov.io/gh/DataDog/orchestrion/pull/293/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog) | `∅ <ø> (∅)` | | | [Integration Test Suite](https://app.codecov.io/gh/DataDog/orchestrion/pull/293/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog) | `75.67% <ø> (+23.80%)` | :arrow_up: | | [Other](https://app.codecov.io/gh/DataDog/orchestrion/pull/293/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog) | `48.28% <ø> (-14.10%)` | :arrow_down: | [see 146 files with indirect coverage changes](https://app.codecov.io/gh/DataDog/orchestrion/pull/293/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog)