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

I can't work with open telemetry collector #8

Open
sabexzero opened this issue Jul 14, 2024 · 0 comments
Open

I can't work with open telemetry collector #8

sabexzero opened this issue Jul 14, 2024 · 0 comments
Assignees
Labels
bug Something isn't working configuration

Comments

@sabexzero
Copy link
Owner

I am deploying the opentelemetry collector with the standard configuration:

receivers:
  otlp:
    protocols:
      grpc:
        endpoint: 0.0.0.0:4317
      http:
        endpoint: 0.0.0.0:4318
        
processors:
  batch:

exporters:
  logging:
  prometheus:
    endpoint: "0.0.0.0:9999"  

service:
  pipelines:
    traces:
      receivers: [otlp]
      processors: [batch]
      exporters: [logging]
    metrics:
      receivers: [otlp]
      processors: [batch]
      exporters: [prometheus]

The configuration of the open telemetry client for each microservice is as follows::

spring:
    opentelemetry:
      traces:
        exporter:
          otlp:
            endpoint: http://localhost:4317
        sampler:
          probability: 1.0
management:
  endpoints:
    web:
      exposure:
        include: health,info,prometheus
  endpoint:
    prometheus:
      enabled: true

However, I get this error even though I disable grpc and use http only:

2024-07-12T23:27:06.809+03:00  WARN 26632 --- [user-feedback-service] [lector:4317/...] i.o.exporter.internal.grpc.GrpcExporter  : Failed to export spans. Server responded with gRPC status code 2. Error message: otel-collector
@sabexzero sabexzero added bug Something isn't working configuration labels Jul 14, 2024
@sabexzero sabexzero self-assigned this Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working configuration
Projects
None yet
Development

No branches or pull requests

1 participant