Skip to content

Commit f0002bf

Browse files
jozkeemairaw
authored andcommitted
Added documentation for System.Diagnostics APIs targeted for 3.0 (dotnet#2969)
* Added documentation for System.Diagnostics APIs targeted for 3.0 * Apply suggestions from code review Co-Authored-By: Ron Petrusha <ronpet@microsoft.com> Co-Authored-By: Carlos Sanchez Lopez <1175054+carlossanlop@users.noreply.github.com> * Update Activity.xml * fix broken link
1 parent 3d7e35f commit f0002bf

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

xml/System.Diagnostics/Activity.xml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -604,10 +604,18 @@ The root ID is a substring from the <xref:System.Diagnostics.Activity.Id> or the
604604
<Parameter Name="format" Type="System.Diagnostics.ActivityIdFormat" Index="0" FrameworkAlternate="netcore-3.0" />
605605
</Parameters>
606606
<Docs>
607-
<param name="format">To be added.</param>
608-
<summary>To be added.</summary>
609-
<returns>To be added.</returns>
610-
<remarks>To be added.</remarks>
607+
<param name="format">One of the enumeration values that specifies the format of the <see cref="P:System.Diagnostics.Activity.Id" /> property.</param>
608+
<summary>Sets the ID format on this <see cref="T:System.Diagnostics.Activity" /> before it is started.</summary>
609+
<returns><see langword="this" /> for convenient chaining.</returns>
610+
<remarks>
611+
<format type="text/markdown"><![CDATA[
612+
613+
## Remarks
614+
615+
The specified format will take precedence over `Parent.IdFormat`, the <xref:System.Diagnostics.Activity.ParentId> format, <xref:System.Diagnostics.Activity.DefaultIdFormat>, and <xref:System.Diagnostics.Activity.ForceDefaultIdFormat>.
616+
617+
]]></format>
618+
</remarks>
611619
</Docs>
612620
</Member>
613621
<Member MemberName="SetParentId">
@@ -667,7 +675,7 @@ This property should only be used in 'boundary' scenarios where an <see cref="T:
667675
<Docs>
668676
<param name="traceId">The parent activity's TraceId.</param>
669677
<param name="spanId">The parent activity's SpanId.</param>
670-
<param name="activityTraceFlags">To be added.</param>
678+
<param name="activityTraceFlags">One of the enumeration values that specifies flags defined by the W3C standard that are associated with an activity.</param>
671679
<summary>Sets the parent ID using the W3C convention of a TraceId and a SpanId.</summary>
672680
<returns><see langword="this" /> for convenient chaining.</returns>
673681
<remarks>

xml/System.Diagnostics/DiagnosticListener.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -439,10 +439,10 @@ If `isEnabled` is `null`, no filtering is done (all overloads of <xref:System.Di
439439
<Parameter Name="onActivityExport" Type="System.Action&lt;System.Diagnostics.Activity,System.Object&gt;" Index="3" FrameworkAlternate="netcore-3.0" />
440440
</Parameters>
441441
<Docs>
442-
<param name="observer">To be added.</param>
443-
<param name="isEnabled">To be added.</param>
444-
<param name="onActivityImport">To be added.</param>
445-
<param name="onActivityExport">To be added.</param>
442+
<param name="observer">A subscriber.</param>
443+
<param name="isEnabled">A delegate that filters events based on their name and up to two context objects (which can be <see langword="null" />), or <see langword="null" /> if an event filter is not desirable.</param>
444+
<param name="onActivityImport">An action delegate that receives the activity affected by an external event and an object that represents the incoming request.</param>
445+
<param name="onActivityExport">An action delegate that receives the activity affected by an external event and an object that represents the outgoing request.</param>
446446
<summary>Adds a subscriber, optionally filters events based on their name and up to two context objects, and specifies methods to call when providers import or export activites from outside the process.</summary>
447447
<returns>A reference to an interface that allows the listener to stop receiving notifications before the <see cref="T:System.Diagnostics.DiagnosticSource" /> has finished sending them.</returns>
448448
<remarks>
@@ -525,4 +525,4 @@ For more information, see the <xref:System.Diagnostics.DiagnosticSource.Write%2A
525525
</Docs>
526526
</Member>
527527
</Members>
528-
</Type>
528+
</Type>

0 commit comments

Comments
 (0)