Skip to content

Commit

Permalink
ASP.NET and OWIN Instrumentations - fix description for `http.server.…
Browse files Browse the repository at this point in the history
…request.duration` metric (#1538)

Co-authored-by: Mateusz Łach <mateusza@splunk.com>
  • Loading branch information
Kielek and lachmatt committed Jan 19, 2024
1 parent f06191f commit 8a89a69
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/OpenTelemetry.Instrumentation.AspNet/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Fix description for `http.server.request.duration` metric.
([#1538](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/1538))

## 1.7.0-beta.1

Released 2023-Dec-20
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public HttpInMetricsListener(Meter meter, AspNetMetricsInstrumentationOptions op
this.httpServerDuration = meter.CreateHistogram<double>(
"http.server.request.duration",
unit: "s",
description: "Measures the duration of inbound HTTP requests.");
description: "Duration of HTTP server requests.");
TelemetryHttpModule.Options.OnRequestStoppedCallback += this.OnStopActivity;
this.options = options;
}
Expand Down
2 changes: 1 addition & 1 deletion src/OpenTelemetry.Instrumentation.AspNet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Currently, the instrumentation supports the following metric.

| Name | Instrument Type | Unit | Description |
|-------|-----------------|------|-------------|
| `http.server.duration` | Histogram | `ms` | Measures the duration of inbound HTTP requests. |
| `http.server.request.duration` | Histogram | `s` | Duration of HTTP server requests. |

## Advanced trace configuration

Expand Down
2 changes: 2 additions & 0 deletions src/OpenTelemetry.Instrumentation.Owin/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
([#929](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/929))
* Adds HTTP server metrics via `AddOwinInstrumentation` extension method on `MeterProviderBuilder`
([#1335](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/1335))
* Fix description for `http.server.request.duration` metric.
([#1538](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/1538))

## 1.0.0-rc.3

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ internal static class OwinInstrumentationMetrics

public static Meter Instance => new Meter(MeterName, AssemblyName.Version.ToString());

public static Histogram<double> HttpServerDuration => Instance.CreateHistogram<double>("http.server.request.duration", "s", "Measures the duration of inbound HTTP requests.");
public static Histogram<double> HttpServerDuration => Instance.CreateHistogram<double>("http.server.request.duration", "s", "Duration of HTTP server requests.");
}
2 changes: 1 addition & 1 deletion src/OpenTelemetry.Instrumentation.Owin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Currently, the instrumentation supports the following metric.

| Name | Instrument Type | Unit | Description |
|-------|-----------------|------|-------------|
| `http.server.request.duration` | Histogram | `s` | Measures the duration of inbound HTTP requests. |
| `http.server.request.duration` | Histogram | `s` | Duration of HTTP server requests. |

## Customize OWIN span names

Expand Down

0 comments on commit 8a89a69

Please sign in to comment.