Skip to content

ddtrace/tracer: do not fallback to target host as Cassandra peer.service source#2100

Merged
rarguelloF merged 4 commits into
mainfrom
rarguelloF/peer-service-cassandra
Jul 11, 2023
Merged

ddtrace/tracer: do not fallback to target host as Cassandra peer.service source#2100
rarguelloF merged 4 commits into
mainfrom
rarguelloF/peer-service-cassandra

Conversation

@rarguelloF

@rarguelloF rarguelloF commented Jul 6, 2023

Copy link
Copy Markdown
Contributor

What does this PR do?

Do not fallback to use target host tags as peer.service source for Cassandra spans when db.cassandra.contact.points is missing.

Motivation

For users who cannot migrate to the tracing methods added in #2057 and get the correct peer.service source for Cassandra (db.cassandra.contact.points), it's better to not have a peer.service rather than out.host (or equivalent tags).

Describe how to test/QA your changes

Reviewer's Checklist

  • Changed code has unit tests for its functionality.
  • If this interacts with the agent in a new way, a system test has been added.

@rarguelloF
rarguelloF marked this pull request as ready for review July 6, 2023 14:38
@rarguelloF
rarguelloF requested a review from a team July 6, 2023 14:38
Comment thread ddtrace/tracer/spancontext.go Outdated
@pr-commenter

pr-commenter Bot commented Jul 7, 2023

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2023-07-11 08:56:23

Comparing candidate commit 0711ca1 in PR branch rarguelloF/peer-service-cassandra with baseline commit 60cbd27 in branch main.

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

@rarguelloF
rarguelloF merged commit 2909e64 into main Jul 11, 2023
@rarguelloF
rarguelloF deleted the rarguelloF/peer-service-cassandra branch July 11, 2023 09:17
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.

3 participants