Skip to content

[BUG] Error from OTel SDK in logs from Liberty example #123

@donbourne

Description

@donbourne

when running the Liberty example the logs fill up with the following error message:

[ERROR   ] Failed to export logs. The request could not be executed. Error message: Failed to connect to localhost/[0:0:0:0:0:0:0:1]:4317
[INFO] Failed to connect to localhost/[0:0:0:0:0:0:0:1]:4317

This is caused by there being no OTel Collector running to accept the connection. Since the example doesn't discuss setting up an OpenTelemetry Collector, a simple fix for this is to disable the OTel SDK using the following env var:

OTEL_SDK_DISABLED=true

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions