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

[connector/spanmetricsconnector]: Migrate from spanmtricsprocessor #18699

Merged
merged 10 commits into from
Feb 17, 2023

Conversation

Cluas
Copy link
Contributor

@Cluas Cluas commented Feb 16, 2023

Description:

Migrate from spanmtricsprocessor

Link to tracking Issue:
#18697
Testing:

Documentation:

@Cluas
Copy link
Contributor Author

Cluas commented Feb 16, 2023

cc@kovrus

Copy link
Member

@kovrus kovrus left a comment

Choose a reason for hiding this comment

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

@Cluas can we split it into a few PRs. Now the migration and changes are mixed.

Then we can follow up with the rest of issues connector/spanmetrics

@Cluas
Copy link
Contributor Author

Cluas commented Feb 16, 2023

@Cluas can we split it into a few PRs. Now the migration and changes are mixed.

Then we can follow up with the rest of issues connector/spanmetrics

ok, when #18697 done, I will merge change to it. Than add two PR, one for drop _total, another one for renaming operation -> span.kind

.chloggen/spanmetricsconnector-independent.yaml Outdated Show resolved Hide resolved
connector/spanmetricsconnector/config.go Outdated Show resolved Hide resolved
connector/spanmetricsconnector/connector_test.go Outdated Show resolved Hide resolved
connector/spanmetricsconnector/factory.go Outdated Show resolved Hide resolved
connector/spanmetricsconnector/factory.go Outdated Show resolved Hide resolved
connector/spanmetricsconnector/connector.go Outdated Show resolved Hide resolved
connector/spanmetricsconnector/connector.go Outdated Show resolved Hide resolved
connector/spanmetricsconnector/connector.go Outdated Show resolved Hide resolved
connector/spanmetricsconnector/connector.go Outdated Show resolved Hide resolved
connector/spanmetricsconnector/connector_test.go Outdated Show resolved Hide resolved
@Cluas Cluas requested review from kovrus and removed request for atoulme and djaglowski February 16, 2023 16:42
@Cluas Cluas requested a review from kovrus February 16, 2023 16:52
@runforesight
Copy link

runforesight bot commented Feb 16, 2023

Foresight Summary

    
Major Impacts

TestStartAndShutdownRemote ❌ failed 1 times in 10 runs (10% fail rate).
build-and-test duration(39 minutes 38 seconds) has decreased 26 minutes 45 seconds compared to main branch avg(1 hour 6 minutes 23 seconds).
View More Details

⭕  changelog workflow has finished in 3 seconds (2 minutes 33 seconds less than main branch avg.) and finished at 16th Feb, 2023.


Job Failed Steps Tests
changelog -     🔗  N/A See Details

⭕  build-and-test-windows workflow has finished in 5 seconds (40 minutes 56 seconds less than main branch avg.) and finished at 16th Feb, 2023.


Job Failed Steps Tests
windows-unittest-matrix -     🔗  N/A See Details
windows-unittest -     🔗  N/A See Details

✅  check-links workflow has finished in 1 minute 33 seconds (59 seconds less than main branch avg.) and finished at 16th Feb, 2023.


Job Failed Steps Tests
changed files -     🔗  N/A See Details
check-links -     🔗  N/A See Details

✅  telemetrygen workflow has finished in 1 minute 2 seconds (2 minutes 2 seconds less than main branch avg.) and finished at 16th Feb, 2023.


Job Failed Steps Tests
build-dev -     🔗  N/A See Details
publish-latest -     🔗  N/A See Details
publish-stable -     🔗  N/A See Details

✅  prometheus-compliance-tests workflow has finished in 3 minutes 30 seconds (5 minutes 14 seconds less than main branch avg.) and finished at 16th Feb, 2023.


Job Failed Steps Tests
prometheus-compliance-tests -     🔗  ✅ 21  ❌ 0  ⏭ 0    🔗 See Details

✅  e2e-tests workflow has finished in 11 minutes 25 seconds (4 minutes 30 seconds less than main branch avg.) and finished at 16th Feb, 2023.


Job Failed Steps Tests
kubernetes-test -     🔗  N/A See Details

✅  load-tests workflow has finished in 22 minutes 3 seconds (⚠️ 5 minutes 21 seconds more than main branch avg.) and finished at 16th Feb, 2023.


Job Failed Steps Tests
loadtest (TestTraceAttributesProcessor) -     🔗  ✅ 3  ❌ 0  ⏭ 0    🔗 See Details
loadtest (TestMetric10kDPS|TestMetricsFromFile) -     🔗  ✅ 6  ❌ 0  ⏭ 0    🔗 See Details
loadtest (TestIdleMode) -     🔗  ✅ 1  ❌ 0  ⏭ 0    🔗 See Details
loadtest (TestTraceNoBackend10kSPS|TestTrace1kSPSWithAttrs) -     🔗  ✅ 8  ❌ 0  ⏭ 0    🔗 See Details
loadtest (TestMetricResourceProcessor|TestTrace10kSPS) -     🔗  ✅ 12  ❌ 0  ⏭ 0    🔗 See Details
loadtest (TestTraceBallast1kSPSWithAttrs|TestTraceBallast1kSPSAddAttrs) -     🔗  ✅ 10  ❌ 0  ⏭ 0    🔗 See Details
loadtest (TestBallastMemory|TestLog10kDPS) -     🔗  ✅ 18  ❌ 0  ⏭ 0    🔗 See Details
setup-environment -     🔗  N/A See Details

✅  build-and-test workflow has finished in 39 minutes 38 seconds (26 minutes 45 seconds less than main branch avg.) and finished at 17th Feb, 2023.


Job Failed Steps Tests
lint-matrix (other) -     🔗  N/A See Details
lint -     🔗  N/A See Details
cross-compile (darwin, amd64) -     🔗  N/A See Details
cross-compile (darwin, arm64) -     🔗  N/A See Details
cross-compile (linux, 386) -     🔗  N/A See Details
cross-compile (linux, amd64) -     🔗  N/A See Details
cross-compile (linux, arm) -     🔗  N/A See Details
cross-compile (linux, arm64) -     🔗  N/A See Details
cross-compile (linux, ppc64le) -     🔗  N/A See Details
cross-compile (windows, 386) -     🔗  N/A See Details
cross-compile (windows, amd64) -     🔗  N/A See Details
build-package (deb) -     🔗  N/A See Details
build-package (rpm) -     🔗  N/A See Details
windows-msi -     🔗  N/A See Details
publish-check -     🔗  N/A See Details
publish-dev -     🔗  N/A See Details
publish-stable -     🔗  N/A See Details

🔎 See details on Foresight

*You can configure Foresight comments in your organization settings page.

@kovrus kovrus added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Feb 16, 2023
@Cluas
Copy link
Contributor Author

Cluas commented Feb 16, 2023

Do we need to remove the connector port part from the spanmetricsprocessor later?

@kovrus
Copy link
Member

kovrus commented Feb 16, 2023

Do we need to remove the connector port part from the spanmetricsprocessor later?

I missed that. Let's remove that in this PR.

And thanks for doing this!

@github-actions github-actions bot added the processor/spanmetrics Span Metrics processor label Feb 16, 2023
@Cluas
Copy link
Contributor Author

Cluas commented Feb 16, 2023

Do we need to remove the connector port part from the spanmetricsprocessor later?

I missed that. Let's remove that in this PR.

And thanks for doing this!

done. PTAL

@djaglowski
Copy link
Member

I am confused about the scope of this PR. Is the purpose only to separate the processor and connector implementations?

@Cluas
Copy link
Contributor Author

Cluas commented Feb 16, 2023

I am confused about the scope of this PR. Is the purpose only to separate the processor and connector implementations?

Yes, then a change to the metric name is applied to the connector. Separate PR will do it:

  1. drop _total, rename calls_total -> calls [connectors/spanmetrics] Drop _total from generated metrics names. #18677
  2. rename operation -> span.name [connectors/spanmetrics] Rename the operation attribute to span.name  #18529

Copy link
Member

@djaglowski djaglowski left a comment

Choose a reason for hiding this comment

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

LGTM, just one question about follow up work.

connector/spanmetricsconnector/config.go Show resolved Hide resolved
@Cluas Cluas requested review from djaglowski and kovrus and removed request for djaglowski February 17, 2023 09:35
Copy link
Member

@kovrus kovrus left a comment

Choose a reason for hiding this comment

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

lgtm

@djaglowski djaglowski merged commit e2d91dd into open-telemetry:main Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
connector/spanmetrics processor/spanmetrics Span Metrics processor Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants