Skip to content

Add link from previous trace when publishing messages with pika  #3047

@mauvilsa

Description

@mauvilsa

What problem do you want to solve?

From my understanding of messaging-spans, when a producer publishes a message, its span would be linked with the span of the consumers. This does not seem to happen when using opentelemetry-instrumentation-pika.

Describe the solution you'd like

The _decorate_basic_publish should take care of automatically adding links.

Describe alternatives you've considered

I tried to manually implement creation of links, but since the decorator function is not public, I did not understand how this could be done.

Additional Context

No response

Would you like to implement a fix?

None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions