Skip to content

opentelemetry-javaagent cause resttemplate error #12504

@pengliaoye

Description

@pengliaoye

Describe the bug

Caused by: org.springframework.security.oauth2.server.resource.introspection.OAuth2IntrospectionException: Cannot invoke "io.opentelemetry.context.Context.get(io.opentelemetry.context.ContextKey)" because "context" is null

Steps to reproduce

  1. when use agent and spring boot starter same time

Expected behavior

not npe

Actual behavior

can't get context

Javaagent or library instrumentation version

java17, opentelemetry-javaagent 2.9.0

Environment

JDK:
OS:

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds reproneeds 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