SocketsHttpHandler.ActivityHeadersPropagator Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Important
This API is not CLS-compliant.
Gets or sets the propagator to use when propagating the distributed trace and context.
Use null
to disable propagation.
public:
property System::Diagnostics::DistributedContextPropagator ^ ActivityHeadersPropagator { System::Diagnostics::DistributedContextPropagator ^ get(); void set(System::Diagnostics::DistributedContextPropagator ^ value); };
C#
[System.CLSCompliant(false)]
public System.Diagnostics.DistributedContextPropagator? ActivityHeadersPropagator { get; set; }
[<System.CLSCompliant(false)>]
member this.ActivityHeadersPropagator : System.Diagnostics.DistributedContextPropagator with get, set
Public Property ActivityHeadersPropagator As DistributedContextPropagator
The default is Current.
- Attributes
An operation has already been started on the current instance.
The current instance has been disposed.
Product | Versions |
---|---|
.NET | 6, 7, 8, 9, 10 |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET feedback
.NET is an open source project. Select a link to provide feedback: