Skip to content

Fix panic in newrelicexporter if service name is empty #969

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

Merged
merged 1 commit into from
Sep 8, 2020

Conversation

MrAlias
Copy link
Contributor

@MrAlias MrAlias commented Sep 8, 2020

Resolves #964

Validate the Node and ServiceInfo are not nil pointers before dereferencing them. Additionally, add tests to prevent regression of this bug.

Resolves #964

Validate the Node and ServiceInfo are not nil pointers before
dereferencing them. Additionally, add tests to prevent regression of
this bug.
@MrAlias MrAlias requested a review from a team September 8, 2020 16:59
Copy link

@lykkin lykkin left a comment

Choose a reason for hiding this comment

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

👍 🎉 ☕ 🍰

@MrAlias
Copy link
Contributor Author

MrAlias commented Sep 8, 2020

Test failure looks to be from the carbonexporter exporter. Looks like I don't have permissions to retry tests to see if it was intermittent.

@codecov
Copy link

codecov bot commented Sep 8, 2020

Codecov Report

Merging #969 into master will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #969      +/-   ##
==========================================
- Coverage   88.47%   88.46%   -0.01%     
==========================================
  Files         245      245              
  Lines       13089    13096       +7     
==========================================
+ Hits        11581    11586       +5     
- Misses       1148     1150       +2     
  Partials      360      360              
Flag Coverage Δ
#integration 74.88% <ø> (ø)
#unit 87.68% <100.00%> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
exporter/newrelicexporter/newrelic.go 80.59% <100.00%> (+1.90%) ⬆️
exporter/newrelicexporter/transformer.go 94.81% <100.00%> (+0.02%) ⬆️
...eiver/awsxrayreceiver/internal/udppoller/poller.go 97.82% <0.00%> (-2.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 3cc0d37...9ef6982. Read the comment docs.

@bogdandrutu bogdandrutu merged commit 3497570 into open-telemetry:master Sep 8, 2020
@MrAlias MrAlias deleted the 964 branch September 8, 2020 18:58
dyladan referenced this pull request in dynatrace-oss-contrib/opentelemetry-collector-contrib Jan 29, 2021
…1921)

Report error via obsreport.EndMetricsReceiveOp and return error in transaction Commit()

Fixes #969
ljmsc referenced this pull request in ljmsc/opentelemetry-collector-contrib Feb 21, 2022
* Consider renaming Infer to Any. Any is a commonly used concept in Go.
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.

NewRelic exporter fails when no service name is provided
3 participants