Skip to content

Possible NPE In Undertow Instrumentation #16128

@pepeshore

Description

@pepeshore

Describe the bug

In io.opentelemetry.javaagent.bootstrap.undertow.UndertowActiveHandlers,the return value of context.get(CONTEXT_KEY) may be null, It will cause normal HTTP requests to fail

Image

Steps to reproduce

It occurs very rarely—only once or twice per tens of millions of requests per day—and cannot be reliably reproduced.

Expected behavior

Don't affect normal HTTP requests handling

Actual behavior

Resulting in normal HTTP requests to fail

Javaagent or library instrumentation version

2.23.0

Environment

JDK: 1.8
OS: ubuntu 20

Additional context

No response

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

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