Conversation
768f94d to
0646645
Compare
I have external (not localhost) ipv6-only jaeger-agent. So I can't use udp4. |
We don't recommend non-local agents, the agent wasn't designed for this. For sending spans to a remote received it's better to use TCP-based protocols, e.g. HTTP directly to the collector. |
travis-ci/travis-ci#8361 (comment) travis-ci/travis-ci#8891 Signed-off-by: Aleksei Androsov <[email protected]>
bad4d71 to
43d5231
Compare
Support to send udp over IPv6. https://nodejs.org/dist/latest-v10.x/docs/api/dgram.html#dgram_dgram_createsocket_type_callback Signed-off-by: Aleksei Androsov <[email protected]>
43d5231 to
da5f59b
Compare
Codecov Report
@@ Coverage Diff @@
## master #396 +/- ##
==========================================
+ Coverage 98.65% 98.65% +<.01%
==========================================
Files 50 50
Lines 2003 2010 +7
Branches 374 377 +3
==========================================
+ Hits 1976 1983 +7
Misses 27 27
Continue to review full report at Codecov.
|
|
@yurishkuro I've fixed all of you comments |
| }); | ||
|
|
||
| it('should gracefully handle errors emitted by socket.send', function(done) { | ||
| // EAI_AGAIN - nodejs received invalid DNS response. E.g. resolver doesn't support IPv6. |
There was a problem hiding this comment.
When would this error happen in the test?
There was a problem hiding this comment.
This errors occurs when dns resolver doesn't support IPv6 or host doesn't have ipv6 resolver. I've got this error in travis for upd6 and foo.bar.xyz instead of ENOTFOUND.
There was a problem hiding this comment.
For example,
on my local Mac I've got ENOTFOUND for this domain because I have dns resolver.
In travis I've got EAI_AGAIN
| it('should gracefully handle errors emitted by socket.send', function(done) { | ||
| // EAI_AGAIN - nodejs received invalid DNS response. E.g. resolver doesn't support IPv6. | ||
| // ENOTFOUND - nodejs received valid DNS response but domain not found | ||
| // ESRCH - nodejs v0.10 error |
There was a problem hiding this comment.
is that specifically for udp6? Since before the tests were passing with just ENOTFOUND
There was a problem hiding this comment.
Yes, is specifically for upd6
e8a8b69 to
2e2238d
Compare
|
Red tests because of this regression Raynos/error#19 deps: jaeger-client-node -> tchannel, thriftrw -> bufrw -> error |
Add tests for configuration options Signed-off-by: Aleksei Androsov <[email protected]>
2e2238d to
8e0b003
Compare
|
Tests are green |
|
@yurishkuro could you release new version please? |
`agentSocketType` is the new config option jaegertracing/jaeger-client-node#396 https://github.com/jaegertracing/jaeger-client-node/releases/tag/v3.17.0 `serviceName` at `PrometheusMetricsFactory` must be optional. https://github.com/jaegertracing/jaeger-client-node/blob/4c739a26d57c615fb4ac53eae921b9fd5ca53df2/src/metrics/prometheus.js#L57
Which problem is this PR solving?
Jaegler client supports udp4 socket only.
Short description of the changes
I've added
agentSocketTypeto reporter config to add support for IPv6 udp sockets.https://nodejs.org/dist/latest-v10.x/docs/api/dgram.html#dgram_dgram_createsocket_type_callback
Example