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

Don't set origin to EC2 when not on AWS. #1115

Merged

Conversation

anuraaga
Copy link
Contributor

We can't only look at semantic attributes for determining AWS origin values since they may be from a different cloud.

@anuraaga anuraaga requested a review from a team as a code owner September 24, 2020 06:40
@project-bot project-bot bot added this to In progress in Collector Sep 24, 2020
@codecov
Copy link

codecov bot commented Sep 24, 2020

Codecov Report

Merging #1115 into master will increase coverage by 15.31%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master    #1115       +/-   ##
===========================================
+ Coverage   73.67%   88.98%   +15.31%     
===========================================
  Files          22      258      +236     
  Lines        1018    12333    +11315     
===========================================
+ Hits          750    10975    +10225     
- Misses        217     1008      +791     
- Partials       51      350      +299     
Flag Coverage Δ
#integration 75.52% <ø> (+1.85%) ⬆️
#unit 88.04% <100.00%> (?)

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

Impacted Files Coverage Δ
exporter/awsxrayexporter/translator/segment.go 94.64% <100.00%> (ø)
internal/common/splunk/hostid.go
exporter/azuremonitorexporter/traceexporter.go 100.00% <0.00%> (ø)
...nalfxexporter/translation/logdata_to_signalfxv2.go 82.75% <0.00%> (ø)
exporter/awsxrayexporter/translator/sql.go 82.75% <0.00%> (ø)
internal/awsxray/tracesegment.go 100.00% <0.00%> (ø)
exporter/awsxrayexporter/translator/service.go 100.00% <0.00%> (ø)
receiver/receivercreator/config_expansion.go 82.97% <0.00%> (ø)
receiver/signalfxreceiver/receiver.go 89.94% <0.00%> (ø)
exporter/honeycombexporter/ids.go 100.00% <0.00%> (ø)
... and 241 more

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 e3493ce...5b7c4a5. Read the comment docs.

if resource.IsNil() {
return OriginEC2
return ""
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice

…ector-contrib into no-aws-on-non-aws-origin
Collector automation moved this from In progress to Reviewer approved Sep 28, 2020
@tigrannajaryan
Copy link
Member

Please fix the conflict and make sure the build passes.

@tigrannajaryan tigrannajaryan self-assigned this Sep 28, 2020
…ector-contrib into no-aws-on-non-aws-origin
@anuraaga
Copy link
Contributor Author

@tigrannajaryan Thanks, merged master

@tigrannajaryan tigrannajaryan merged commit 8797a56 into open-telemetry:master Sep 29, 2020
Collector automation moved this from Reviewer approved to Done Sep 29, 2020
dyladan referenced this pull request in dynatrace-oss-contrib/opentelemetry-collector-contrib Jan 29, 2021
If ResourceCheckPeriod is more than 1 second, reported resource values are not being changed during each ResourceCheckPeriod, so logging every second doens't provide much value, but makes it hard to read logs in long run running tests
ljmsc referenced this pull request in ljmsc/opentelemetry-collector-contrib Feb 21, 2022
* Change name of ProbabilitySampler to TraceIdRatioBased

* Modify behavior to ignore parent span
* Add test for inclusivity property on TraceIdRatioBased sampler
* Modify tests in `trace_test.go` to reflect change in parent
  span behavior

* Add to CHANGELOG

* Satisfy golint

* Update CHANGELOG.md

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
codeboten pushed a commit that referenced this pull request Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Collector
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants