kubeshop / tracetest

🔭 Tracetest - Build integration and end-to-end tests in minutes, instead of days, using OpenTelemetry and trace-based testing.
https://docs.tracetest.io/
Other
993 stars 70 forks source link

Metrics server error on startup when an user is not setting metrics collection #3858

Open danielbdias opened 2 months ago

danielbdias commented 2 months ago

When a user starts a Tracetest server without metrics section properly configured:

telemetry:
      exporters:
        collector:
          exporter:
            collector: # here
              endpoint: address-to-otel-collector:4317
            type: collector
          metricsReaderInterval: 60s # and here
          serviceName: tracetest

Our server starts to raise the following error at startup:

failed to upload metrics: rpc error: code = Unimplemented desc = unknown service opentelemetry.proto.collector.metrics.v1.MetricsService
segment 2024/05/17 14:29:00 ERROR: 1 messages dropped because they failed to be sent after 10 attempts