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

[CIAPP] Avoid sending non-CIVisibility traces if CIVisibility mode is enabled. #3223

Merged
merged 2 commits into from
Nov 26, 2021

Conversation

drodriguezhdez
Copy link
Contributor

@drodriguezhdez drodriguezhdez commented Nov 25, 2021

This PR adds a new CiVisibilityTraceInterceptor that applies the following changes:

  • If the root span type is not test, the entire trace is dropped.
  • If the root span type is test, we ensure all spans have the CI Visibility origin metadata.

Context:
The CI Visibility mode can use the same integrations used by the Tracing mode to have the same visibility in end-to-end tests. That means a test span potentially can have HTTP, SQL, Kafka, etc. children spans. This fact may have implications with Billing.

We want to ensure that all generated traces are billed by CI App and not by APM if CI Visibility is enabled.

@drodriguezhdez drodriguezhdez requested a review from a team as a code owner November 25, 2021 14:17
@drodriguezhdez drodriguezhdez force-pushed the drodriguezhdez/civisibility_trace_interceptor branch 2 times, most recently from d749ee6 to 0e0d5b4 Compare November 25, 2021 14:20
@drodriguezhdez drodriguezhdez added the comp: ci visibility Continuous Integration Visibility label Nov 25, 2021
@drodriguezhdez drodriguezhdez force-pushed the drodriguezhdez/civisibility_trace_interceptor branch from 0e0d5b4 to e23bcb2 Compare November 26, 2021 08:43
@drodriguezhdez drodriguezhdez force-pushed the drodriguezhdez/civisibility_trace_interceptor branch from e23bcb2 to 176dcb4 Compare November 26, 2021 09:54
@drodriguezhdez drodriguezhdez merged commit b8c2efc into master Nov 26, 2021
@drodriguezhdez drodriguezhdez deleted the drodriguezhdez/civisibility_trace_interceptor branch November 26, 2021 12:08
@github-actions github-actions bot added this to the 0.91.0 milestone Nov 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp: ci visibility Continuous Integration Visibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants