Skip to content

OpenTelemetry input return 400 on invalid endpoint instead of 404 #12032

Description

@aklobus00

Bug Report

OpenTelemetry input returns 400 on invalid endpoint instead of expected 404

HTTP/2 400 
date: Thu, 02 Jul 2026 08:51:59 GMT

error: invalid endpoint

To Reproduce
Config:

service:
  flush: 1
  log_level: info

pipeline:
  inputs:
    - name: opentelemetry
      match: "*"
      host: localhost
      port: 4318

  outputs:
    - name: stdout
      match: "*"

Send request to invalid endpoint

Expected behavior
Returned HTTP code is 404

Your Environment
tested with version v5.0.8 and master branch

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions