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

bug(exporter-collector): error while sending spans #1125

Closed
vmarchaud opened this issue May 29, 2020 · 10 comments
Closed

bug(exporter-collector): error while sending spans #1125

vmarchaud opened this issue May 29, 2020 · 10 comments
Labels
bug Something isn't working Discussion Issue or PR that needs/is extended discussion.

Comments

@vmarchaud
Copy link
Member

When trying to use the latest exporter-collector i get those logs:

exportTraceServiceRequest {
resourceSpans: [ { resource: [Object], instrumentationLibrarySpans: [Array] } ]
}
2 UNKNOWN: address X.Y.Z.dev: missing port in address

My guess would be that they come from there but i can't figure out why its happening.
Note: X.Y.Z.dev are the host of which my service are exposed and it's not configured at the application level.

Maybe @obecny have an idea since you worked on it ?

@vmarchaud vmarchaud added bug Something isn't working Discussion Issue or PR that needs/is extended discussion. labels May 29, 2020
@dyladan
Copy link
Member

dyladan commented May 29, 2020

@mayurkale22 didn't you do something to do with the url in collector exporter defaults recently?

/cc @obecny because he wrote the exporter

@vmarchaud
Copy link
Member Author

I have defined a specific URL relative to my setup so i'm not sure that would be that. I can still push traces and i see them where i export them but i'm missing some spans (mostly mongodb ones)

@dyladan
Copy link
Member

dyladan commented May 29, 2020

This is happening on all exports or only some exports? Some or all hosts?

@obecny
Copy link
Member

obecny commented May 29, 2020

Hard to say anything without debugging your case, as recently the collector has been refactored. Try to debug yrself - there are 2 versions for node nad for browser

@vmarchaud
Copy link
Member Author

The log happens on all services that have OT JS running, the collector is a single instance, i use the version on the repo contrib (master)

@dyladan
Copy link
Member

dyladan commented May 29, 2020

@mayurkale22
Copy link
Member

const exporter = new CollectorExporter({
  serviceName: 'basic-service',
  url: 'X.Y.Z.dev:55678',
});

Assuming you're trying in node.js and you have something like above code to initiate the CollectorExporter, right?

@vmarchaud
Copy link
Member Author

vmarchaud commented May 29, 2020

@mayurkale22 Yeah, however i've sent the serviceName to a another string than the host present in the error log.

Edit: the host i've given above is the hostname of the service itself (used to route traffic to it) not the collector one.

@mayurkale22
Copy link
Member

Could you pls try running https://github.com/open-telemetry/opentelemetry-js/tree/master/examples/collector-exporter-node example w/ direct collector address and w/ hostname of the service?

@vmarchaud
Copy link
Member Author

Sorry it was a problem with an exporter of the collector (elastic in this case: open-telemetry/opentelemetry-collector-contrib#240).
However i'm wondering if we should need to add inside the log that the error comes from the collector and not the sdk itself, WDYT ?

pichlermarc pushed a commit to dynatrace-oss-contrib/opentelemetry-js that referenced this issue Dec 15, 2023
* feat: trace redis connect

* test: fix typo in test name

* fix: remove code duplication, record exception, fix span name

* refactor: don't create unnecessary promises

Co-authored-by: Rauno Viskus <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Discussion Issue or PR that needs/is extended discussion.
Projects
None yet
Development

No branches or pull requests

4 participants