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

Update attribute processor's readme #20855

Merged

Conversation

ptodev
Copy link
Contributor

@ptodev ptodev commented Apr 11, 2023

While working on a feature for the Grafana Agent, I noticed that the the attribute processor's readme is out of date. This PR changes the following:

  • Remove mention of expressions. I'm not sure what this is in the first place, and why it is in the .md file.
  • Mention span_kinds and log_severity_number
  • Fix the way resources and libraries are described in config.

It seems filtering based on severity number and span kinds was added later, which is why the documentation does not mention them.

I did not add a changelog entry for this PR because it's quite a minor change.

@ptodev ptodev requested review from a team and jpkrohling April 11, 2023 10:17
@github-actions github-actions bot added the processor/attributes Attributes processor label Apr 11, 2023
@github-actions github-actions bot requested a review from boostchicken April 11, 2023 10:17
@runforesight
Copy link

runforesight bot commented Apr 11, 2023

Foresight Summary

    
Major Impacts

build-and-test-windows duration(3 seconds) has decreased 30 minutes 40 seconds compared to main branch avg(30 minutes 43 seconds).
View More Details

✅  telemetrygen workflow has finished in 1 minute 5 seconds and finished at 11th Apr, 2023.


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

✅  check-links workflow has finished in 1 minute 49 seconds (⚠️ 50 seconds more than main branch avg.) and finished at 11th Apr, 2023.


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

✅  load-tests workflow has finished in 6 minutes 47 seconds (3 minutes 33 seconds less than main branch avg.) and finished at 11th Apr, 2023.


Job Failed Steps Tests
setup-environment -     🔗  N/A See Details
loadtest (TestIdleMode) -     🔗  N/A See Details
loadtest (TestBallastMemory|TestLog10kDPS) -     🔗  N/A See Details
loadtest (TestMetric10kDPS|TestMetricsFromFile) -     🔗  N/A See Details
loadtest (TestMetricResourceProcessor|TestTrace10kSPS) -     🔗  N/A See Details
loadtest (TestTraceNoBackend10kSPS|TestTrace1kSPSWithAttrs) -     🔗  N/A See Details
loadtest (TestTraceBallast1kSPSWithAttrs|TestTraceBallast1kSPSAddAttrs) -     🔗  N/A See Details
loadtest (TestTraceAttributesProcessor) -     🔗  N/A See Details

✅  prometheus-compliance-tests workflow has finished in 9 minutes 24 seconds (⚠️ 3 minutes 3 seconds more than main branch avg.) and finished at 11th Apr, 2023.


Job Failed Steps Tests
prometheus-compliance-tests -     🔗  N/A See Details

✅  e2e-tests workflow has finished in 25 minutes 20 seconds (⚠️ 11 minutes 14 seconds more than main branch avg.) and finished at 11th Apr, 2023.


Job Failed Steps Tests
kubernetes-test (v1.26.0) -     🔗  N/A See Details
kubernetes-test (v1.25.3) -     🔗  N/A See Details
kubernetes-test (v1.24.7) -     🔗  N/A See Details
kubernetes-test (v1.23.13) -     🔗  N/A See Details

⭕  build-and-test-windows workflow has finished in 3 seconds (30 minutes 40 seconds less than main branch avg.) and finished at 12th Apr, 2023.


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

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


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

⭕  build-and-test workflow has finished in 21 minutes 20 seconds (25 minutes 29 seconds less than main branch avg.) and finished at 12th Apr, 2023.


Job Failed Steps Tests
unittest-matrix (1.20, other) -     🔗  N/A See Details
unittest (1.20) Interpret result     🔗  N/A See Details
unittest (1.19) Interpret result     🔗  N/A See Details
cross-compile -     🔗  N/A See Details
windows-msi -     🔗  N/A See Details
build-package -     🔗  N/A See Details
publish-stable -     🔗  N/A See Details
publish-dev -     🔗  N/A See Details
publish-check -     🔗  N/A See Details
rotate-milestone -     🔗  N/A See Details

🔎 See details on Foresight

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

@ptodev
Copy link
Contributor Author

ptodev commented Apr 11, 2023

I also added a change to the example configs in processor/attributesprocessor/testdata/config.yaml for an attribute which currently seems wrong to me. It would be good if someone with more knowledge of this confirms that the change is correct.

@jpkrohling jpkrohling added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Apr 12, 2023
@jpkrohling
Copy link
Member

I triggered the failing tests to run again.

@ptodev ptodev requested a review from jpkrohling April 18, 2023 18:03
@ptodev
Copy link
Contributor Author

ptodev commented Apr 18, 2023

I made a couple of additional changes to the readme:

  • Remove "resource_attributes" from readme.
  • Add "attributes" and "libraries" as invalid metrics filters.

ptodev added 3 commits May 23, 2023 16:25
Add "attributes" and "libraries" as invalid metrics filters.
@jpkrohling jpkrohling force-pushed the update-attributes-processor-readme branch from caeabdd to 9087fd0 Compare May 23, 2023 19:26
@jpkrohling
Copy link
Member

PR rebased

@jpkrohling jpkrohling merged commit 4177c8c into open-telemetry:main May 31, 2023
@github-actions github-actions bot added this to the next release milestone May 31, 2023
Caleb-Hurshman pushed a commit to observIQ/opentelemetry-collector-contrib that referenced this pull request Jul 6, 2023
* Update readme

* Update test config

* Remove "resource_attributes" from readme.
Add "attributes" and "libraries" as invalid metrics filters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
processor/attributes Attributes 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.

3 participants