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

Jaeger exporter fails if scheme is specified in endpoint URL #429

Closed
atrepczik opened this issue Apr 12, 2021 · 3 comments
Closed

Jaeger exporter fails if scheme is specified in endpoint URL #429

atrepczik opened this issue Apr 12, 2021 · 3 comments
Labels
backlog bug Something isn't working

Comments

@atrepczik
Copy link

Describe your environment
Python 3.8.5
opentelemetry-api 1.0.0
opentelemetry-sdk 1.0.0
opentelemetry-exporter-jaeger-proto-grpc 1.0.0

Steps to reproduce
If the environment variable of OTEL_EXPORTER_JAEGER_ENDPOINT is specified as http://localhost:14250 like the default value in OpenTelemetry Environment Variable Specification, the Jaeger gRPC exporter fails sending spans as the underlying library is not able to do DNS resolution for http://localhost:14250.

If the scheme part is omitted in the (e.g. localhost:14250), everything works as expected.

What is the expected behavior?
The default value from the spec document should work, like it does for the Java agent. Alternatively, it should be documented that this must be configured differently for Python.

What is the actual behavior?
Spans are not sent to Jaeger. The application produces a traceback.

Traceback (most recent call last):
  File "/home/atrepczik/workspace/flask-opentelemetry/venv/lib/python3.8/site-packages/opentelemetry/sdk/trace/export/__init__.py", line 331, in _export_batch
    self.span_exporter.export(self.spans_list[:idx])  # type: ignore
  File "/home/atrepczik/workspace/flask-opentelemetry/venv/lib/python3.8/site-packages/opentelemetry/exporter/jaeger/proto/grpc/__init__.py", line 164, in export
    self._collector_grpc_client.PostSpans(request)
  File "/home/atrepczik/workspace/flask-opentelemetry/venv/lib/python3.8/site-packages/grpc/_channel.py", line 923, in __call__
    return _end_unary_response_blocking(state, call, False, None)
  File "/home/atrepczik/workspace/flask-opentelemetry/venv/lib/python3.8/site-packages/grpc/_channel.py", line 826, in _end_unary_response_blocking
    raise _InactiveRpcError(state)
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.UNAVAILABLE
	details = "DNS resolution failed for service: http://localhost:14250"
	debug_error_string = "{"created":"@1618232615.769967660","description":"Resolver transient failure","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":2137,"referenced_errors":[{"created":"@1618232615.769964180","description":"DNS resolution failed for service: http://localhost:14250","file":"src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc","file_line":361,"grpc_status":14,"referenced_errors":[{"created":"@1618232615.769904855","description":"C-ares status is not ARES_SUCCESS qtype=A name=http://localhost:14250 is_balancer=0: Could not contact DNS servers","file":"src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc","file_line":716,"referenced_errors":[{"created":"@1618232615.768847611","description":"C-ares status is not ARES_SUCCESS qtype=AAAA name=http://localhost:14250 is_balancer=0: Could not contact DNS servers","file":"src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc","file_line":716}]}]}]}"
@atrepczik atrepczik added the bug Something isn't working label Apr 12, 2021
@srikanthccv
Copy link
Member

@atrepczik This was addressed in open-telemetry/opentelemetry-python#1771 and released in new version. Please update the version and let us know if this is still a problem. Thanks.

@github-actions
Copy link

This issue was marked stale due to lack of activity. It will be closed in 30 days.

@github-actions
Copy link

Closed as inactive. Feel free to reopen if this issue needs resolving.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants