Giter VIP home page Giter VIP logo

Comments (5)

yurishkuro avatar yurishkuro commented on June 12, 2024

The port setting you're changing affects where collector listens for OTLP. You did not provide any indication that it's not working for traces submitted externally. The internal errors are coming up because Jaeger uses OTEL SDK internally and sends the traces back to itself, at the default port 4317. You need to pas another env var that is recognized by the SDK to indicate the new location of the OTLP endpoint.

from jaeger.

FirelightFlagboy avatar FirelightFlagboy commented on June 12, 2024

I did further tests as you suggested with:

services:
  jaeger:
    image: jaegertracing/all-in-one:1.54.0
    environment:
      COLLECTOR_OTLP_GRPC_HOST_PORT: :14317
      LOG_LEVEL: debug
    ports:
      - 14317:14317
      - 16686:16686

  telemetry-gen:
    depends_on:
      - jaeger
    image: ghcr.io/open-telemetry/opentelemetry-collector-contrib/telemetrygen:latest
    command:
      - traces
      - --otlp-insecure
      - --otlp-endpoint=jaeger:14317
      - --duration=30s
      - --workers=4
      - --rate=4

The Web ui is accessible and the traces generated by telemetrygen are visible.

What's left if the error message generated by the collector.


You need to pas another env var that is recognized by the SDK to indicate the new location of the OTLP endpoint.

Indeed setting the variable OTEL_EXPORTER_OTLP_ENDPOINT or OTEL_EXPORTER_OTLP_TRACES_ENDPOINT to http://localhost:14317 fix the error message.

But I would have expected those value to be set when I pass COLLECTOR_OTLP_GRPC_HOST_PORT or --collector.otlp.grpc.host-port

from jaeger.

yurishkuro avatar yurishkuro commented on June 12, 2024

But I would have expected those value to be set ...

I don't know, I can see pros and cons. Curious why you need to change the port in the first place - since you running Jaeger it its own container, you can map its internal port to anything else externally, while the internal span exports would still be sent to the default port and continue to work.

from jaeger.

yurishkuro avatar yurishkuro commented on June 12, 2024

Closing as I don't think it's worth the added complexity

from jaeger.

FirelightFlagboy avatar FirelightFlagboy commented on June 12, 2024

Curious why you need to change the port in the first place

I was trying to troubleshoot why the traces I was generating was displayed on Jaeger

Closing as I don't think it's worth the added complexity

I understand, if it cannot be done automatically, can the step setting `OTEL_EXPORTER_OTLP_TRACES_ENDPOINT` to the correct value be documented on the troubleshoot section ?

from jaeger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.