Welcome to the Linux Foundation Forum!

Otel Collector seems doesn't work

There is 2 exercise that I still can’t complete. Could anyone help me?
I think maybe both issues are caused by the same problem.

Where I’m stuck

Exercise 1

  1. Hands-on Lab: Automatic Instrumentation and Instrumentation Libraries
    → Exercise 1: Zero-code Instrumentation for Java and Python
    → Instrumentation of the Python (Flask) Component (2)

Exercise 2

  1. Hands-on Lab: Automatic Instrumentation and Instrumentation Libraries
    → Exercise 2: Code-Based Instrumentation for Java & Python
    → Java Instrumentation Annotations (2)

Problem in Exercise 1

What I did

After running the app, I added and deleted some todos on http://localhost:5000/.

Then I opened Jaeger, but I could only find 2 services.
Also, when I selected [springboot-backend : POST /todos/{todo}], I noticed that my POST request was traced by the Java agent somehow.

I confirmed that the Jaeger container is running, and I set the trace exporter to OTLP.

PS C:\tmp\OT-Action-20260407> Test-NetConnection localhost -Port 4317

ComputerName     : localhost
RemoteAddress    : ::1
RemotePort       : 4317
InterfaceAlias   : Loopback Pseudo-Interface 1
SourceAddress    : ::1
TcpTestSucceeded : True

PS C:\tmp\OT-Action-20260407> $env:OTEL_TRACES_EXPORTER
otlp

Console Output

PS C:\tmp\OT-Action-20260407\LFS148-code\exercises\automatic-instrumentation\initial\todoui-flask> & "$env:LOCALAPPDATA\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts\opentelemetry-instrument.exe" python app.py

 * Serving Flask app 'app'
 * Debug mode: off

INFO:werkzeug:_internal:WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.

 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5000
 * Running on http://172.17.1.205:5000

INFO:werkzeug:_internal:Press CTRL+C to quit

INFO:root:app:GET http://localhost:8080/todos//todos/
INFO:root:app:Response: ["Leo","slow"]
INFO:werkzeug:_internal:127.0.0.1 - - [13/May/2026 11:58:56] "GET / HTTP/1.1" 200 -

{
    "name": "GET",
    "context": {
        "trace_id": "0x466c15db27a8a719c9603cfb6b1c364c",
        "span_id": "0x0f20ef0dd9f89b64",
        "trace_state": "[]"
    },
    "kind": "SpanKind.CLIENT",
    "parent_id": "0x07481fb544350c33",
    "start_time": "2026-05-13T02:58:56.273013Z",
    "end_time": "2026-05-13T02:58:56.301638Z",
    "status": {
        "status_code": "UNSET"
    },
    "attributes": {
        "http.method": "GET",
        "http.url": "http://localhost:8080/todos/",
        "http.status_code": 200
    },
    "events": [],
    "links": [],
    "resource": {
        "attributes": {
            "telemetry.sdk.language": "python",
            "telemetry.sdk.name": "opentelemetry",
            "telemetry.sdk.version": "1.26.0",
            "service.name": "todoui-flask",
            "telemetry.auto.version": "0.47b0"
        },
        "schema_url": ""
    }
}

Problem in Exercise 2

  1. Hands-on Lab: Automatic Instrumentation and Instrumentation Libraries
    → Exercise 2: Code-Based Instrumentation for Java & Python
    → Java Instrumentation Annotations (2)

What I did

After running the app, I added and deleted some todos on http://localhost:5000/.

Then I opened Jaeger, but I could not find the [someInternalMethod] span.

Answers

  • leo4444
    leo4444 Posts: 3

    Sorry, please disregard my comment on the second issue.
    The Jaeger screenshot threw me off — I thought I needed to find the [someInternalMethod] span at that point, but now I understand I should continue with the steps in Java Instrumentation Annotations (3).

  • leo4444
    leo4444 Posts: 3

    I have finished Java Instrumentation Annotations (3), but still can not find the span, I don't know why.

Categories

Upcoming Training