You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* System.Diagnostics.Tracing.*
* System.Diagnotics.Activity*
* DiagnosticSource
* Update Activity.xml
* Update ActivitySpanId.xml
* Update ActivityTraceId.xml
* Changed crefs to xrefs
* Address comments
* address more comments
* Move remarks from .ctor to type
* Fixed bad API links
* Fixed bad API links
Copy file name to clipboardExpand all lines: xml/System.Diagnostics.Tracing/DiagnosticCounter.xml
+16-7Lines changed: 16 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -65,9 +65,18 @@
65
65
<ReturnType>System.String</ReturnType>
66
66
</ReturnValue>
67
67
<Docs>
68
-
<summary>To be added.</summary>
69
-
<value>To be added.</value>
70
-
<remarks>To be added.</remarks>
68
+
<summary>Gets or sets display name of the counter.</summary>
69
+
<value>The display name of the counter.</value>
70
+
<remarks>
71
+
<formattype="text/markdown"><![CDATA[
72
+
73
+
## Remarks
74
+
75
+
The `DisplayName` provides a more display friendly name for the consumer side of the metrics. For example, a counter named "gen-0-gc-count" is better displayed as "Gen 0 GC Count". To do so, `DisplayName` can be used to be reported as part of the payload.
76
+
77
+
]]></format>
78
+
79
+
</remarks>
71
80
</Docs>
72
81
</Member>
73
82
<MemberMemberName="DisplayUnits">
@@ -137,8 +146,8 @@ After being disposed, this counter will do nothing, and its resources will be re
Copy file name to clipboardExpand all lines: xml/System.Diagnostics.Tracing/EventCounter.xml
+14-6Lines changed: 14 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -34,10 +34,11 @@
34
34
<Docs>
35
35
<summary>Provides the ability to collect statistics for very frequent events through the <seecref="T:System.Diagnostics.Tracing.EventSource" /> class.</summary>
36
36
<remarks>
37
-
<formattype="text/markdown">< topic.
39
+
## Remarks
40
+
41
+
For an example of how to use the <xref:System.Diagnostics.Tracing.EventCounter> class, see [Introduction Tutorial: How to measure performance for very frequent events using EventCounters](https://github.com/dotnet/corefx/blob/master/src/System.Diagnostics.Tracing/documentation/EventCounterTutorial.md).
41
42
42
43
]]></format>
43
44
</remarks>
@@ -158,9 +159,16 @@ For an example of how to use the <xref:System.Diagnostics.Tracing.EventCounter>
<paramname="value">The value to be written.</param>
163
+
<summary>Writes the metric if performance counters are on.</summary>
164
+
<remarks>
165
+
<formattype="text/markdown"><.
Copy file name to clipboardExpand all lines: xml/System.Diagnostics.Tracing/IncrementingEventCounter.xml
+19-5Lines changed: 19 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,11 @@
18
18
<remarks>
19
19
<formattype="text/markdown"><![CDATA[
20
20
21
-
`IncrementingEventCounter` does not calculate statistics like mean or standard deviation because it only accumulates the counter value.
21
+
## Remarks
22
+
23
+
`IncrementingEventCounter` is used for keeping track of values that are always increasing, such as the total number of requests, the total number of exceptions thrown, etc. For such metrics, simply reporting the total value is not necessarily useful for monitoring its health. For example, keeping track of how many bytes have been allocated in total for the entire duration of the process is not useful for diagnosing any potential issues from allocating too much memory. A metric that would help us is how many bytes were allocated in the past minute, hour, or some arbitrary time interval, and not the entire duration of the process. `IncrementingEventCounter` can be used to keep track of and report just the increments over a time interval that was specified by the consumer of the metric.
24
+
25
+
`IncrementingEventCounter` does not calculate statistics like mean or standard deviation because it only keeps track of the increments over a period of time.
22
26
23
27
]]></format>
24
28
</remarks>
@@ -46,7 +50,9 @@
46
50
<remarks>
47
51
<formattype="text/markdown"><![CDATA[
48
52
49
-
Incrementing event counters live as long as the <see cref="T:System.Diagnostics.Tracing.EventSource" /> that they are attached to unless they are explicitly disposed.
53
+
## Remarks
54
+
55
+
<xref:System.Diagnostics.Tracing.IncrementingEventCounter> live as long as the <xref:System.Diagnostics.Tracing.EventSource> that they are attached to unless they are explicitly disposed.
50
56
51
57
]]></format>
52
58
</remarks>
@@ -68,9 +74,17 @@ Incrementing event counters live as long as the <see cref="T:System.Diagnostics.
68
74
<ReturnType>System.TimeSpan</ReturnType>
69
75
</ReturnValue>
70
76
<Docs>
71
-
<summary>To be added.</summary>
72
-
<value>To be added.</value>
73
-
<remarks>To be added.</remarks>
77
+
<summary>Gets or sets the rate at which this metric should be displayed as.</summary>
78
+
<value>Gets or sets the rate at which this metric should be displayed</value>
79
+
<remarks>
80
+
<formattype="text/markdown">< on GitHub.
22
30
23
31
]]></format>
24
32
</remarks>
@@ -42,16 +50,10 @@
42
50
</Parameters>
43
51
<Docs>
44
52
<paramname="name">The name for this <seecref="T:System.Diagnostics.Tracing.IncrementingPollingCounter" /> instance.</param>
<paramname="totalValueProvider">To be added.</param>
53
+
<paramname="eventSource">The event source this instance is a part of.</param>
54
+
<paramname="totalValueProvider">A method that will be used to poll the value.</param>
47
55
<summary>Initializes a new instance of the <seecref="T:System.Diagnostics.Tracing.IncrementingPollingCounter" /> class.</summary>
48
-
<remarks>
49
-
<formattype="text/markdown"><![CDATA[
50
-
51
-
<xref:System.Diagnostics.Tracing.IncrementingPollingCounter> objects live as long as the <xref:System.Diagnostics.Tracing.EventSource> that they are attached to unless they are explicitly disposed.
52
-
53
-
]]></format>
54
-
</remarks>
56
+
<remarks>To be added.</remarks>
55
57
</Docs>
56
58
</Member>
57
59
<MemberMemberName="DisplayRateTimeScale">
@@ -70,9 +72,16 @@
70
72
<ReturnType>System.TimeSpan</ReturnType>
71
73
</ReturnValue>
72
74
<Docs>
73
-
<summary>To be added.</summary>
74
-
<value>To be added.</value>
75
-
<remarks>To be added.</remarks>
75
+
<summary>Gets or sets rate at which this metric should be displayed as.</summary>
76
+
<value>The rate at which this metric should be displayed.</value>
77
+
<remarks>
78
+
<formattype="text/markdown">< on GitHub.
22
30
23
31
]]></format>
24
32
</remarks>
@@ -43,15 +51,9 @@
43
51
<Docs>
44
52
<paramname="name">The name for this <seecref="T:System.Diagnostics.Tracing.PollingCounter" /> instance.</param>
<paramname="metricProvider">A method that will be used to poll the value.</param>
47
55
<summary>Initializes a new instance of the <seecref="T:System.Diagnostics.Tracing.PollingCounter" /> class.</summary>
48
-
<remarks>
49
-
<formattype="text/markdown"><![CDATA[
50
-
51
-
Polling counters live as long as the <see cref="T:System.Diagnostics.Tracing.EventSource" /> that they are attached to unless they are explicitly disposed.
52
-
53
-
]]></format>
54
-
</remarks>
56
+
<remarks>To be added.</remarks>
55
57
</Docs>
56
58
</Member>
57
59
<MemberMemberName="ToString">
@@ -77,4 +79,4 @@ Polling counters live as long as the <see cref="T:System.Diagnostics.Tracing.Eve
Copy file name to clipboardExpand all lines: xml/System.Diagnostics/Activity.xml
+26-22Lines changed: 26 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -19,16 +19,18 @@
19
19
<Docs>
20
20
<summary>Represents an operation with context to be used for logging.</summary>
21
21
<remarks>
22
-
<formattype="text/markdown"><![CDATA[
22
+
<formattype="text/markdown"><![CDATA[
23
+
24
+
## Remarks
23
25
24
26
An `Activity` has an operation name, an ID, a start time and duration, tags, and baggage.
25
-
27
+
26
28
The current activity can be accessed with the static <xref:System.Diagnostics.Activity.Current?displayProperty=nameWithType> property.
27
29
28
30
Activities should be created by calling the constructor, configured as necessary, and then started with the <xref:System.Diagnostics.Activity.Start%2A> method, which maintains parent-child relationships for the activities and sets <xref:System.Diagnostics.Activity.Current?displayProperty=nameWithType>.
29
-
31
+
30
32
When an activity is finished, it should be stopped with the <xref:System.Diagnostics.Activity.Stop?displayProperty=nameWithType> method.
31
-
33
+
32
34
No `Activity` methods allow exceptions to escape as a response to bad inputs. They are thrown and caught (which allows debuggers and monitors to see the error), but the exception is suppressed, and the operation does something reasonable (typically it does nothing).
33
35
34
36
]]></format>
@@ -114,8 +116,7 @@ Note that <xref:System.Diagnostics.Activity> has a "builder" pattern: you call t
114
116
<paramname="key">The baggage key.</param>
115
117
<paramname="value">The baggage value.</param>
116
118
<summary>Updates the <seecref="T:System.Diagnostics.Activity" /> to have a new baggage item with the specified key and value.</summary>
117
-
<returns>
118
-
<seelangword="this" /> for convenient chaining.</returns>
119
+
<returns><seelangword="this" /> for convenient chaining.</returns>
119
120
<remarks>
120
121
<formattype="text/markdown"><![CDATA[
121
122
@@ -155,8 +156,7 @@ This key/value pair is included in the collection returned by the <see cref="P:S
155
156
<paramname="key">The tag key.</param>
156
157
<paramname="value">The tag value.</param>
157
158
<summary>Updates the <seecref="T:System.Diagnostics.Activity" /> to have a new tag with the provided <paramrefname="key" /> and <paramrefname="value" />. .</summary>
158
-
<returns>
159
-
<seelangword="this" /> for convenient chaining.</returns>
159
+
<returns><seelangword="this" /> for convenient chaining.</returns>
160
160
<remarks>
161
161
<formattype="text/markdown"><![CDATA[
162
162
@@ -581,8 +581,7 @@ The root ID is a substring from the <xref:System.Diagnostics.Activity.Id> or the
581
581
<Docs>
582
582
<paramname="endTimeUtc">The UTC stop time.</param>
583
583
<summary>Updates the <seecref="T:System.Diagnostics.Activity" /> to set its <seecref="P:System.Diagnostics.Activity.Duration" /> as the difference between <seecref="P:System.Diagnostics.Activity.StartTimeUtc" /> and the specified stop time.</summary>
584
-
<returns>
585
-
<seelangword="this" /> for convenient chaining.</returns>
584
+
<returns><seelangword="this" /> for convenient chaining.</returns>
586
585
<remarks>To be added.</remarks>
587
586
</Docs>
588
587
</Member>
@@ -635,8 +634,7 @@ The root ID is a substring from the <xref:System.Diagnostics.Activity.Id> or the
635
634
<Docs>
636
635
<paramname="parentId">The ID of the parent operation.</param>
637
636
<summary>Updates this <seecref="T:System.Diagnostics.Activity" /> to indicate that the <seecref="T:System.Diagnostics.Activity" /> with an ID of <paramrefname="parentId" /> caused this <seecref="T:System.Diagnostics.Activity" />.</summary>
638
-
<returns>
639
-
<seelangword="this" /> for convenient chaining.</returns>
637
+
<returns><seelangword="this" /> for convenient chaining.</returns>
640
638
<remarks>
641
639
<formattype="text/markdown"><![CDATA[
642
640
@@ -667,12 +665,20 @@ This property should only be used in 'boundary' scenarios where an <see cref="T:
0 commit comments