Skip to content

/v1/logs returns HTTP status 204 when it should return 200 #15761

Open
@codefromthecrypt

Description

Describe the bug

Currently, the /otlp/v1/logs endpoint returns HTTP 204, not HTTP 200 on success.

To Reproduce

https://github.com/grafana/loki/blob/main/pkg/distributor/http.go#L76C22-L76C37

Expected behavior

The spec says to return 200, and folks have run into issues resulting in a change to opentelemetry-python. If this can switch back, then folks don't have to go around changing every language to prevent validation errors.

Metadata

Assignees

No one assigned

    Labels

    OTEL/OLTPtype/bugSomehing is not working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions