Skip to content

Commit c2ff20f

Browse files
authored
SetParent doesn't work after CreateActivity (dotnet#8048)
1 parent fa917ca commit c2ff20f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

xml/System.Diagnostics/Activity.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,6 +1202,7 @@ The specified format will take precedence over `Parent.IdFormat`, the <xref:Syst
12021202
## Remarks
12031203
12041204
- This method should only be used in 'boundary' scenarios where an <xref:System.Diagnostics.Activity> from another process logically started this <xref:System.Diagnostics.Activity>. The `parentId` brings up the <xref:System.Diagnostics.Activity.Tags> (as well as the <xref:System.Diagnostics.Activity.ParentId> property) and can be used to reconstruct the causal tree.
1205+
- This method is only intended for use with Activities created from the Activity constructor. Activities created by calling <xref:System.Diagnostics.ActivitySource.CreateActivity%2A> or <xref:System.Diagnostics.ActivitySource.StartActivity%2A> already have the parent ID set, and invoking this method has no effect.
12051206
- This method should only be used before starting the <xref:System.Diagnostics.Activity> object. This method has no effect if you call it after the <xref:System.Diagnostics.Activity> object has started.
12061207
12071208
]]></format>

0 commit comments

Comments
 (0)