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

[receiver/datadog] otlp runtime logs reported error #24562

Closed
callmediaomao opened this issue Jul 26, 2023 · 4 comments · Fixed by #24658
Closed

[receiver/datadog] otlp runtime logs reported error #24562

callmediaomao opened this issue Jul 26, 2023 · 4 comments · Fixed by #24658
Labels
bug Something isn't working receiver/datadog

Comments

@callmediaomao
Copy link

callmediaomao commented Jul 26, 2023

Component(s)

receiver/datadog

Describe the issue you're reporting

I am using receiver/datadog to export data from datadog agent,but open-telemetry keeps reporting errors.
My demo project is very simple, with step-by-step installation and deployment.I don't know why this is a problem.
datadog-agent version:
image

dd-java-agent version(latest):
image

open-telemetry-collector-contrib version:
image

otel-conf.yaml:
image

otel error logs:
image

image

@callmediaomao callmediaomao added the needs triage New item requiring triage label Jul 26, 2023
@github-actions
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@jpkrohling
Copy link
Member

@boostchicken, @MovieStoreGuy , are you able to look into it?

@jpkrohling jpkrohling added bug Something isn't working and removed needs triage New item requiring triage labels Jul 27, 2023
@callmediaomao
Copy link
Author

@jpkrohling
I suspect there's something wrong with this part of the code.
image
This code returns null resulting in the following NulPointerException.
image
image

@MovieStoreGuy
Copy link
Contributor

@jpkrohling I suspect there's something wrong with this part of the code. image This code returns null resulting in the following NulPointerException. image image

Amazing detective work! Should be rather easy for me to submit a patch :)
Thank you.

MovieStoreGuy added a commit that referenced this issue Jul 31, 2023
**Description:** 

Exit on error to avoid NPE

**Link to tracking Issue:**

Fixes
#24562

**Testing:**

I would like to fix up how the component does tests in future PR.

**Documentation:**

N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working receiver/datadog
Projects
None yet
3 participants