-
Notifications
You must be signed in to change notification settings - Fork 836
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
Using OTLPTraceExporter and OTLPMetricExporter together causes empty data #2791
Comments
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
This issue was closed because it has been stale for 14 days with no activity. |
did you find any solution? I have the same problem |
No, sorry. |
I found a solution, Adding OTPL urls for both tracing and metrics fixed the issue.
then use it like:
Note* make sure the OTPL urls are in the same region as to where you store your new relic data. |
Can you confirm if this is still happening with the latest version of the proto exporter? I believe this may have been caused by an inheritance issue. The otlp metrics exporters used to depend on the trace exporters as there was some shared transformation code. The code has since been factored out into its own package and the inheritance structure has been simplified |
I am still seeing this. packages:
code for initializing exporters:
|
we're also using |
Nope verified what @EddieEldridge is seeing, its literrally the creation of a |
Also, it's order dependent. If
then trace requests will have empty proto and metrics will have data. If
then metric requests will have empty proto and traces will have data. Also it's not domain dependent. I tried sending exporters to different collectors on different domains and that didn't change anything. |
Also I tried on both Node v14 and v16 and saw no change. |
Marking p2 since this is not crashing the app but is causing telemetry not to be emitted. I'm looking into this. |
This is fixed by #3098 The root cause was that the |
The proposed release fixes this issue. |
Awesome. Thanks @dyladan and @legendecas. Was questioning my sanity while dealing with this one so I appreciate someone taking a look at it and figuring it out! |
I've also been pulling my hair out on this one including going on a wild goose chase with the gRPC exporters for a couple weeks (my brain skipped right over the fact this is the proto exporters😩). Imagine my surprise when I tracked the issue down finally in my outdated local copy, then a |
What version of OpenTelemetry are you using?
What version of Node are you using?
v12.22.1
Please provide the code you used to setup the OpenTelemetry SDK
What did you do?
Tried to send OTLP trace data to NewRelic.
What did you expect to see?
My trace data to be created and ingested correctly.
What did you see instead?
The following error:
One or more OTLP payload(s) was dropped because it was empty.
Additional context
If I remove the line
const metricExporter = new OTLPMetricExporter(exporterConfig);
everything works fine. My traces are ingested correctly and displayed in the UI.
I am also able to send metric data fine, just not when I try and do both at the same time.
I am confused why simply instantiating an instance of the
OTLPMetricExporter
would cause my traces to not be sent/formatted properly even though I don't even pass it into the SDK.The text was updated successfully, but these errors were encountered: