@@ -104,14 +104,14 @@ of the `deno` instrumentation scope. (e.g. `deno:2.1.4`).
104104
105105Deno automatically creates spans for various operations, such as:
106106
107- - Incoming HTTP requests served with ` Deno.serve ` .
108- - Outgoing HTTP requests made with ` fetch ` .
107+ - Incoming HTTP requests served with [ ` Deno.serve ` ] ( /api/deno/~/Deno.serve ) .
108+ - Outgoing HTTP requests made with [ ` fetch ` ] ( /api/web/~/fetch ) .
109109
110- #### ` Deno.serve `
110+ #### [ ` Deno.serve ` ] ( /api/deno/~/Deno.serve )
111111
112- When you use ` Deno.serve ` to create an HTTP server, a span is created for each
113- incoming request. The span automatically ends when response headers are sent
114- (not when the response body is done sending).
112+ When you use [ ` Deno.serve ` ] ( /api/deno/~/Deno.serve ) to create an HTTP server, a
113+ span is created for each incoming request. The span automatically ends when
114+ response headers are sent (not when the response body is done sending).
115115
116116The name of the created span is ` ${method} ` . The span kind is ` server ` .
117117
@@ -158,10 +158,11 @@ Deno.serve(async (req) => {
158158});
159159```
160160
161- #### ` fetch `
161+ #### [ ` fetch ` ] ( /api/web/~/fetch )
162162
163- When you use ` fetch ` to make an HTTP request, a span is created for the request.
164- The span automatically ends when the response headers are received.
163+ When you use [ ` fetch ` ] ( /api/web/~/fetch ) to make an HTTP request, a span is
164+ created for the request. The span automatically ends when the response headers
165+ are received.
165166
166167The name of the created span is ` ${method} ` . The span kind is ` client ` .
167168
@@ -181,15 +182,16 @@ After the response is received, the following attributes are added:
181182
182183The following metrics are automatically collected and exported:
183184
184- #### ` Deno.serve ` / ` Deno.serveHttp `
185+ #### [ ` Deno.serve ` ] ( /api/deno/~/Deno.serve ) / [ ` Deno.serveHttp ` ] ( /api/deno/~/Deno.serveHttp )
185186
186187##### ` http.server.request.duration `
187188
188- A histogram of the duration of incoming HTTP requests served with ` Deno.serve `
189- or ` Deno.serveHttp ` . The time that is measured is from when the request is
190- received to when the response headers are sent. This does not include the time
191- to send the response body. The unit of this metric is seconds. The histogram
192- buckets are
189+ A histogram of the duration of incoming HTTP requests served with
190+ [ ` Deno.serve ` ] ( /api/deno/~/Deno.serve ) or
191+ [ ` Deno.serveHttp ` ] ( /api/deno/~/Deno.serveHttp ) . The time that is measured is
192+ from when the request is received to when the response headers are sent. This
193+ does not include the time to send the response body. The unit of this metric is
194+ seconds. The histogram buckets are
193195` [0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1.0, 2.5, 5.0, 7.5, 10.0] ` .
194196
195197This metric is recorded with the following attributes:
@@ -207,10 +209,12 @@ This metric is recorded with the following attributes:
207209
208210##### ` http.server.active_requests `
209211
210- A gauge of the number of active requests being handled by ` Deno.serve ` or
211- ` Deno.serveHttp ` at any given time. This is the number of requests that have
212- been received but not yet responded to (where the response headers have not yet
213- been sent). This metric is recorded with the following attributes:
212+ A gauge of the number of active requests being handled by
213+ [ ` Deno.serve ` ] ( /api/deno/~/Deno.serve ) or
214+ [ ` Deno.serveHttp ` ] ( /api/deno/~/Deno.serveHttp ) at any given time. This is the
215+ number of requests that have been received but not yet responded to (where the
216+ response headers have not yet been sent). This metric is recorded with the
217+ following attributes:
214218
215219- ` http.request.method ` : The HTTP method of the request.
216220- ` url.scheme ` : The scheme of the request URL.
@@ -220,8 +224,9 @@ been sent). This metric is recorded with the following attributes:
220224##### ` http.server.request.body.size `
221225
222226A histogram of the size of the request body of incoming HTTP requests served
223- with ` Deno.serve ` or ` Deno.serveHttp ` . The unit of this metric is bytes. The
224- histogram buckets are
227+ with [ ` Deno.serve ` ] ( /api/deno/~/Deno.serve ) or
228+ [ ` Deno.serveHttp ` ] ( /api/deno/~/Deno.serveHttp ) . The unit of this metric is
229+ bytes. The histogram buckets are
225230` [0, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000] ` .
226231
227232This metric is recorded with the following attributes:
@@ -240,8 +245,9 @@ This metric is recorded with the following attributes:
240245##### ` http.server.response.body.size `
241246
242247A histogram of the size of the response body of incoming HTTP requests served
243- with ` Deno.serve ` or ` Deno.serveHttp ` . The unit of this metric is bytes. The
244- histogram buckets are
248+ with [ ` Deno.serve ` ] ( /api/deno/~/Deno.serve ) or
249+ [ ` Deno.serveHttp ` ] ( /api/deno/~/Deno.serveHttp ) . The unit of this metric is
250+ bytes. The histogram buckets are
245251` [0, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000] ` .
246252
247253This metric is recorded with the following attributes:
@@ -721,9 +727,9 @@ By default, Deno supports the following propagators:
721727
722728::: note
723729
724- These propagators automatically work with Deno's ` fetch ` API and ` Deno.serve ` ,
725- enabling end-to-end tracing across HTTP requests without manual context
726- management.
730+ These propagators automatically work with Deno's [ ` fetch ` ] ( /api/web/~/fetch ) API
731+ and [ ` Deno.serve ` ] ( /api/deno/~/Deno.serve ) , enabling end-to-end tracing across
732+ HTTP requests without manual context management.
727733
728734:::
729735
@@ -778,9 +784,10 @@ limitations to be aware of:
778784- HTTP methods are that are not known are not normalized to ` _OTHER ` in the
779785 ` http.request.method ` span attribute as per the OpenTelemetry semantic
780786 conventions.
781- - The HTTP server span for ` Deno.serve ` does not have an OpenTelemetry status
782- set, and if the handler throws (ie ` onError ` is invoked), the span will not
783- have an error status set and the error will not be attached to the span via
784- event.
787+ - The HTTP server span for [ ` Deno.serve ` ] ( /api/deno/~/Deno.serve ) does not have
788+ an OpenTelemetry status set, and if the handler throws (ie ` onError ` is
789+ invoked), the span will not have an error status set and the error will not be
790+ attached to the span via event.
785791- There is no mechanism to add a ` http.route ` attribute to the HTTP client span
786- for ` fetch ` , or to update the span name to include the route.
792+ for [ ` fetch ` ] ( /api/web/~/fetch ) , or to update the span name to include the
793+ route.
0 commit comments