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

[OASIS-12] Allow serializerexporter to consume APM stats #26568

Merged
merged 2 commits into from
Jun 10, 2024

Conversation

songy23
Copy link
Member

@songy23 songy23 commented Jun 10, 2024

What does this PR do?

Add stats in channel to serializerexporter to consume APM stats
Split from #25759

Motivation

Consume and send APM stats from DD connector.

Describe how to test/QA your changes

n/a will be covered in #25759

@songy23 songy23 added changelog/no-changelog team/opentelemetry OpenTelemetry team qa/done Skip QA week as QA was done before merge and regressions are covered by tests labels Jun 10, 2024
@songy23 songy23 added this to the 7.56.0 milestone Jun 10, 2024
// The DD Connector doesn't set the agent version, so we'll set it here
sp.AgentVersion = agentVersion

// TODO(OASIS-12): send StatsPayload with trace agent
Copy link
Member Author

Choose a reason for hiding this comment

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

Will be added in #25759

@@ -180,6 +189,38 @@ func (f *factory) createMetricsExporter(
return sf.CreateMetricsExporter(ctx, set, ex)
}

func (f *factory) consumeStatsPayload(ctx context.Context, wg *sync.WaitGroup, statsIn <-chan []byte, tracerVersion string, agentVersion string, logger *zap.Logger) {
Copy link
Member Author

Choose a reason for hiding this comment

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

@songy23 songy23 requested a review from dineshg13 June 10, 2024 19:06
@songy23 songy23 marked this pull request as ready for review June 10, 2024 19:07
@songy23 songy23 requested a review from a team as a code owner June 10, 2024 19:07
Copy link

codecov bot commented Jun 10, 2024

Codecov Report

Attention: Patch coverage is 21.95122% with 32 lines in your changes missing coverage. Please review.

Project coverage is 50.01%. Comparing base (d03e9d7) to head (74a60e8).
Report is 6 commits behind head on main.

Files Patch % Lines
...tlp/components/exporter/datadogexporter/factory.go 0.00% 26 Missing ⚠️
...components/exporter/serializerexporter/exporter.go 50.00% 2 Missing and 1 partial ⚠️
.../components/exporter/serializerexporter/factory.go 62.50% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main   #26568       +/-   ##
===========================================
+ Coverage   44.86%   50.01%    +5.14%     
===========================================
  Files        2354      337     -2017     
  Lines      273093    28262   -244831     
===========================================
- Hits       122532    14134   -108398     
+ Misses     140887    13388   -127499     
+ Partials     9674      740     -8934     
Flag Coverage Δ
amzn_aarch64 51.59% <21.95%> (+5.88%) ⬆️
centos_x86_64 51.25% <21.95%> (+5.63%) ⬆️
ubuntu_aarch64 51.60% <21.95%> (+5.89%) ⬆️
ubuntu_x86_64 51.60% <21.95%> (+5.90%) ⬆️
windows_amd64 49.35% <21.95%> (-1.31%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pr-commenter
Copy link

pr-commenter bot commented Jun 10, 2024

Test changes on VM

Use this command from test-infra-definitions to manually test this PR changes on a VM:

inv create-vm --pipeline-id=36326688 --os-family=ubuntu

@songy23
Copy link
Member Author

songy23 commented Jun 10, 2024

/merge

@dd-devflow
Copy link

dd-devflow bot commented Jun 10, 2024

🚂 MergeQueue: pull request added to the queue

The median merge time in main is 1h.

Use /merge -c to cancel this operation!

@dd-mergequeue dd-mergequeue bot merged commit c4199c2 into main Jun 10, 2024
216 checks passed
@dd-mergequeue dd-mergequeue bot deleted the yang.song/otel-trace-exp branch June 10, 2024 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/no-changelog qa/done Skip QA week as QA was done before merge and regressions are covered by tests team/opentelemetry OpenTelemetry team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants