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

[exporter/datadog]: ensure top level spans are computed #3786

Merged

Conversation

ericmustin
Copy link
Contributor

Description:

A previous PR accidentally dropped top level span computation, (here: 2696783#diff-b98fa670a9a811a13714fe4ce9bb4b3c5c6442c05638eb156a61e5480e8aa8faL82) which has caused an unintended effect of causing a large number of spans to not be retained. This PR reverts that change

Link to tracking Issue:

Testing:

updated unit tests

Documentation:

@ericmustin ericmustin requested review from mx-psi and a team as code owners June 14, 2021 21:18
@project-bot project-bot bot added this to In progress in Collector Jun 14, 2021
@ericmustin ericmustin changed the title [exporter/datadog]: ensure top level is computed [exporter/datadog]: ensure top level spans are computed Jun 14, 2021
Copy link
Member

@mx-psi mx-psi left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fix :)

Collector automation moved this from In progress to Reviewer approved Jun 15, 2021
@mx-psi mx-psi added the ready to merge Code review completed; ready to merge by maintainers label Jun 15, 2021
@@ -37,6 +37,7 @@ func computeAPMStats(tracePayload *pb.TracePayload, pushTime int64) *stats.Paylo
bucketTS := pushTime - statsBucketDuration
for _, trace := range tracePayload.Traces {
spans := getAnalyzedSpans(trace.Spans)

Copy link
Member

Choose a reason for hiding this comment

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

Unnecessary change.

@bogdandrutu bogdandrutu merged commit 3e7bd49 into open-telemetry:main Jun 16, 2021
Collector automation moved this from Reviewer approved to Done Jun 16, 2021
mstumpfx pushed a commit to mstumpfx/opentelemetry-collector-contrib that referenced this pull request Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Code review completed; ready to merge by maintainers
Projects
No open projects
Collector
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants