https://signoz.io logo
#support
Title
# support
m

Monesh s

04/07/2022, 9:35 AM
configure opentelementry in my ruby application but its throws error, can u please help on this issue App 1175968 output: E, [2022-04-07T092942.264464 #1175968] ERROR -- : OpenTelemetry error: Unable to export 59 spans App 1176031 output: E, [2022-04-07T092943.588552 #1176031] ERROR -- : OpenTelemetry error: unexpected error in OTLP::Exporter#send_bytes - undefined method `include?' for nil:NilClass App 1176031 output: E, [2022-04-07T092943.588731 #1176031] ERROR -- : OpenTelemetry error: Unable to export 5 spans App 1175968 output: E, [2022-04-07T092957.274309 #1175968] ERROR -- : OpenTelemetry error: unexpected error in OTLP::Exporter#send_bytes - undefined method `include?' for nil:NilClass App 1175968 output: E, [2022-04-07T092957.274468 #1175968] ERROR -- : OpenTelemetry error: Unable to export 71 spans App 1176031 output: E, [2022-04-07T092958.597884 #1176031] ERROR -- : OpenTelemetry error: unexpected error in OTLP::Exporter#send_bytes - undefined method `include?' for nil:NilClass App 1176031 output: E, [2022-04-07T092958.597981 #1176031] ERROR -- : OpenTelemetry error: Unable to export 3 spans App 1176073 output: E, [2022-04-07T093000.816435 #1176073] ERROR -- : OpenTelemetry error: unexpected error in OTLP::Exporter#send_bytes - undefined method `include?' for nil:NilClass App 1176073 output: E, [2022-04-07T093000.816531 #1176073] ERROR -- : OpenTelemetry error: Unable to export 3 spans
i have install required gems and configured config/initializers/opentelemetry.rb file
and added in .env
OTEL_TRACES_EXPORTER='otlp' OTEL_METRICS_EXPORTER='none' OTEL_EXPORTER_OTLP_ENDPOINT="my-release-signoz-otel-collector.platform.svc.cluster.local"
s

Srikanth Chekuri

04/07/2022, 9:39 AM
Collector runs on port 4317/grpc and 4318/http. Make that part of endpoint for based on which protocol you are using
m

Monesh s

04/07/2022, 9:42 AM
service/my-release-signoz-otel-collector ClusterIP 100.71.79.116 <none> 4317/TCP,4318/TCP,55680/TCP,55681/TCP,14250/TCP,14268/TCP,9411/TCP,8888/TCP,8889/TCP
collertor is running cluster ip
so i m using the dns of the service
everthing is inside the cluster so pod to pod communication should work with dns right?
s

Srikanth Chekuri

04/07/2022, 9:45 AM
You should also specify the port in the endpoint config
m

Monesh s

04/07/2022, 9:53 AM
its working now @User Thanks
2 Views