Skip to content

TracingHeaders message field  #378

@gfx687

Description

@gfx687

Hello, I am trying to integrate CAP with OpenTracing.

I have found the Helper.AddTracingHeaderProperty method that looks like exactly for this purpose, but any data added as TracingHeaders will be overwritten in BasePublishMessageSender.SendWithoutRetryAsync with just empty TracingHeaders object. How can I add tracing metadata to messages? Or should I just add my logic and content field for it?

P.S.

  1. Here new TracingHeaders object are set to eventData.Headers (https://github.com/dotnetcore/CAP/blob/master/src/DotNetCore.CAP/IPublishMessageSender.Base.cs#L160)
  2. And here my TracingHeaders data in Content overwritten because tracingResult.Item2 != null always true (because of p.1) (https://github.com/dotnetcore/CAP/blob/master/src/DotNetCore.CAP/IPublishMessageSender.Base.cs#L72)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions