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

contrib/cloud.google.com/go/pubsub.v1: split tracing code #2852

Merged
merged 10 commits into from
Sep 12, 2024

Conversation

rarguelloF
Copy link
Contributor

@rarguelloF rarguelloF commented Sep 10, 2024

What does this PR do?

Split tracing logic into a separate package that does not import cloud.google.com/go/pubsub so it can be used in orchestrion.

Motivation

orchestrion cannot reuse the pubsub contrib package as it is right now because it would case an import cycle. Creating a separate package allows us to reuse this logic.

Reviewer's Checklist

  • Changed code has unit tests for its functionality at or near 100% coverage.
  • System-Tests covering this feature have been added and enabled with the va.b.c-dev version tag.
  • There is a benchmark for any new code, or changes to existing code.
  • If this interacts with the agent in a new way, a system test has been added.
  • Add an appropriate team label so this PR gets put in the right place for the release notes.
  • Non-trivial go.mod changes, e.g. adding new modules, are reviewed by @DataDog/dd-trace-go-guild.

Unsure? Have a question? Request a review!

@github-actions github-actions bot added the apm:ecosystem contrib/* related feature requests or bugs label Sep 10, 2024
@pr-commenter
Copy link

pr-commenter bot commented Sep 10, 2024

Benchmarks

Benchmark execution time: 2024-09-11 15:11:47

Comparing candidate commit ba11596 in PR branch rarguelloF/APPSEC-53291/refactor-pubsub with baseline commit d1b31e8 in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 59 metrics, 0 unstable metrics.

@rarguelloF rarguelloF marked this pull request as ready for review September 11, 2024 15:24
@rarguelloF rarguelloF requested review from a team as code owners September 11, 2024 15:24
Copy link
Contributor

@eliottness eliottness left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@darccio darccio left a comment

Choose a reason for hiding this comment

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

LGTM

@rarguelloF rarguelloF enabled auto-merge (squash) September 12, 2024 14:40
@darccio darccio disabled auto-merge September 12, 2024 14:41
@darccio darccio merged commit e081e4a into main Sep 12, 2024
135 checks passed
@darccio darccio deleted the rarguelloF/APPSEC-53291/refactor-pubsub branch September 12, 2024 15:02
github-merge-queue bot pushed a commit to DataDog/orchestrion that referenced this pull request Sep 23, 2024
Adds support for instrumenting `cloud.google.com/go/pubsub`

Requires DataDog/dd-trace-go#2852

---------

Co-authored-by: Romain Marcadier <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apm:ecosystem contrib/* related feature requests or bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants