Skip to content

@WithSpan and customTextMapPropagator #2438

@mnadeem

Description

@mnadeem

Describe the bug

This is related to #2436

@WithSpan could be more robust if there is a way to specify custom Propagator to extract parent trace.

image

Even though there is parent trace a new trace is created.

image

This limits the use of @WithSpan, if a library is not instrumented. And we would be forced to create span the hard way.

Steps to reproduce
use this project : https://github.com/mnadeem/boot-opentelemetry-tempo

What did you expect to see?

A easy and custom way for @WithSpan to extract parent trace, if a library is not instrumented.

What did you see instead?
A clear and concise description of what you saw instead.

What version are you using?
(e.g., v0.9.0, 393e4a2, etc)

Environment
Compiler: (e.g., "AdoptOpenJDK 11.0.6")
OS: (e.g., "Ubuntu 20.04")
Runtime (if different from JDK above): (e.g., "Oracle JRE 8u251")
OS (if different from OS compiled on): (e.g., "Windows Server 2019")

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions