Skip to content

Add support for SOAP-headers in OpenTelemetry.Instrumentation.AspNet (ActivityHelper) #1796

Open
@olahallvall

Description

@olahallvall

Feature Request

The library OpenTelemetry.Instrumentation.AspNet can today only extract headers from ordinary http headers.
I would like to extend this library to support SOAP-headers as well.

SOAP-header are not in the same place as ordinary http headers. Please see below:

  <?xml version="1.0"?>
  <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope/"
  soap:encodingStyle="http://www.w3.org/2003/05/soap-encoding">
  
  <soap:Header>
     <traceparent>00-392035ad9a5bc44b94715b99673d14f8-d8ca005e5d95554c-01</traceparent>
  </soap:Header>
  
  <soap:Body>
  ...
    <soap:Fault>
    ...
    </soap:Fault>
  </soap:Body>
  
  </soap:Envelope>

By extend the ActivityHelper class in OpenTelemetry.Instrumentation.AspNet.TelemetryHttpModule the library can support both types of headers.

My customer has a big number of ASMX-services that we would like to have tracing support.

I have made a working prototyp here that works!
I would like to contribute my solution to the OpenTelemetry.Instrumentation.AspNet.TelemetryHttpModule component.

Can a buddy help me start up the contribution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    comp:instrumentation.aspnetThings related to OpenTelemetry.Instrumentation.AspNetenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions