Skip to content

Pekko http request-timeout prevents spans from ending #13436

@samwright

Description

@samwright

Describe the bug

When pekko's HTTP server is configured with a request-timeout (default 20s) the span is never ended, and its response status code is never set.

Here's an attempt at fixing that, including a test that fails without the changes: #13435

I imagine the same solution would work with akka-http.

Steps to reproduce

See testTimeout

Expected behavior

The span should:

  • end
  • status set to error
  • http.response.status_code set to the status code of the HttpResponse returned by Timeout-Access (defaults to 503)

Actual behavior

The span doesn't end, so doesn't get exported.

Javaagent or library instrumentation version

pekko-http-1.0

Environment

JDK: 21
OS: MacOS

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds triageNew issue that requires triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions