Skip to content

Commit

Permalink
re-arrange
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishwesh Bankwar committed Nov 28, 2023
1 parent 26a473b commit 7b02720
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
34 changes: 17 additions & 17 deletions src/OpenTelemetry.Instrumentation.AspNetCore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,23 +136,6 @@ newer versions.
recommended buckets by default for `http.server.request.duration`. This
applies to all targeted frameworks.

## Activity Duration and http.server.request.duration metric details

`Activity.Duration` and `http.client.request.duration` values represents the
time used to handle an inbound HTTP request as measured at the hosting layer of
ASP.NET Core. The time measurement starts once the underlying web host has:

* Sufficiently parsed the HTTP request headers on the inbound network stream to
identify the new request.
* Initialized the context data structures such as the
[HttpContext](https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.http.httpcontext).

The time ends when:

* The ASP.NET Core handler pipeline is finished executing.
* All response data has been sent.
* The context data structures for the request are being disposed.

## Advanced configuration

This instrumentation can be configured to change the default behavior by using
Expand Down Expand Up @@ -252,6 +235,23 @@ This instrumentation automatically sets Activity Status to Error if an unhandled
exception is thrown. Additionally, `RecordException` feature may be turned on,
to store the exception to the Activity itself as ActivityEvent.

## Activity Duration and http.server.request.duration metric calculation

`Activity.Duration` and `http.client.request.duration` values represents the
time used to handle an inbound HTTP request as measured at the hosting layer of
ASP.NET Core. The time measurement starts once the underlying web host has:

* Sufficiently parsed the HTTP request headers on the inbound network stream to
identify the new request.
* Initialized the context data structures such as the
[HttpContext](https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.http.httpcontext).

The time ends when:

* The ASP.NET Core handler pipeline is finished executing.
* All response data has been sent.
* The context data structures for the request are being disposed.

## Troubleshooting

This component uses an
Expand Down
14 changes: 7 additions & 7 deletions src/OpenTelemetry.Instrumentation.Http/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,6 @@ newer versions.
recommended buckets by default for `http.client.request.duration`. This
applies to all targeted frameworks.

## Activity Duration and http.client.request.duration metric details

`Activity.Duration` and `http.client.request.duration` values represents the
time the underlying client handler takes to complete the request. Completing the
request includes the time up to reading response headers from the network
stream. It doesn't include the time spent reading the response body.

## Advanced configuration

This instrumentation can be configured to change the default behavior by using
Expand Down Expand Up @@ -319,6 +312,13 @@ This instrumentation automatically sets Activity Status to Error if the Http
StatusCode is >= 400. Additionally, `RecordException` feature may be turned on,
to store the exception to the Activity itself as ActivityEvent.

## Activity Duration and http.client.request.duration metric calculation

`Activity.Duration` and `http.client.request.duration` values represents the
time the underlying client handler takes to complete the request. Completing the
request includes the time up to reading response headers from the network
stream. It doesn't include the time spent reading the response body.

## Troubleshooting

This component uses an
Expand Down

0 comments on commit 7b02720

Please sign in to comment.