Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 3e378b2

Browse files
committed
Updated Docs.
1 parent 774dfa7 commit 3e378b2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/System.Net.Http/src/HttpDiagnosticsGuide.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,8 @@ Otherwise, `Activity.Current` represent some 'parent' activity (presumably incom
9191
7. `DiagnosticListener.Write("System.Net.Http.HttpRequestOut.Stop", new {Response, RequestTaskStatus})` - notifies that activity (outgoing request) is stopping
9292

9393
# Non-Activity events (deprecated)
94-
If there is a subscriber to "HttpHandlerDiagnosticListener", but Activity events are disabled (`DiagnosticListener.IsEnabled("System.Net.Http.HttpRequestOut", request)` returns false), instrumentation attempts to send legacy "System.Net.Http.Request" and "System.Net.Http.Response" events if they are enabled.
95-
Consumers should consider migrating to Activity events instead of Request/Response events.
94+
There are two events System.Net.Http.Request and System.Net.Http.Response, currently are also emited for compatibility purposes.
95+
They are redundant with the System.Net.Http.HttpRequestOut start and stop events (but do not set Activity.Current and follow activity conventions (start/stop)
96+
They are deprecated, and consumers are advised only to depend on them to suport.NET Core V1.1 apps (where the new events are not present).
97+
It is likely that these deprecated events will be remove at some point.
98+
Consumers should migrate to System.Net.Http.HttpRequestOut.Start and System.Net.Http.HttpRequestOut.Stop events instead.

0 commit comments

Comments
 (0)