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

[sumologicexporter] Add extrapolation of source headers #1756

Merged

Conversation

sumo-drosiek
Copy link
Member

Description:

Add extrapolation of source headers. For sourceName, sourceHost and sourceCategory headers, the %{attribute_name} will be replaced with attribute_value, so one can inject eg. cluster or namespace name into mentioned headers.

Example:

For cluster=kubernetes and namespace=sumologic, %{cluster}/%{namespace} becomes kubernetes/sumologic

Link to tracking Issue:
#1498

Testing:
Unit tests

Documentation:
comments

@sumo-drosiek sumo-drosiek requested a review from a team December 3, 2020 11:29
@codecov
Copy link

codecov bot commented Dec 3, 2020

Codecov Report

Merging #1756 (6293eb8) into master (941b403) will decrease coverage by 0.00%.
The diff coverage is 90.69%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1756      +/-   ##
==========================================
- Coverage   89.51%   89.51%   -0.01%     
==========================================
  Files         376      378       +2     
  Lines       18318    18342      +24     
==========================================
+ Hits        16398    16418      +20     
- Misses       1422     1424       +2     
- Partials      498      500       +2     
Flag Coverage Δ
integration 70.97% <ø> (-0.07%) ⬇️
unit 88.21% <90.69%> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
exporter/sumologicexporter/exporter.go 50.00% <60.00%> (ø)
exporter/sumologicexporter/source_format.go 89.47% <89.47%> (ø)
exporter/sumologicexporter/fields.go 100.00% <100.00%> (ø)
exporter/sumologicexporter/filter.go 90.00% <100.00%> (-2.00%) ⬇️
exporter/sumologicexporter/sender.go 90.47% <100.00%> (+0.18%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 941b403...6293eb8. Read the comment docs.

@bogdandrutu
Copy link
Member

@sumo-drosiek anyone from your company can pre-review and approve this?

@sumo-drosiek
Copy link
Member Author

@bogdandrutu
Sure, It is after internal review: sumo-drosiek#6
cc: @pmalek-sumo, @pmm-sumo

@bogdandrutu
Copy link
Member

@sumo-drosiek ok, but would be good if they approve PRs here as well so I can have a confirmation that I am not merging un-reviewed things.

@bogdandrutu bogdandrutu merged commit a20a6f4 into open-telemetry:master Dec 7, 2020
dyladan referenced this pull request in dynatrace-oss-contrib/opentelemetry-collector-contrib Jan 29, 2021
To help reviewers and authors remember to make progress on PR
this action will mark PRs as stale after inactivity of 7 days
and will close the PR after 7 more days of inactivity.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants