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
{{ message }}
Repository navigation
Commit 4a70eaf
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+41-7Lines changed: 41 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ started. Invalid options throw.
47
47
|`serviceName`| string |`unknown_service:node`| Service name in exported resource attributes. The default follows the OpenTelemetry [semantic conventions](https://opentelemetry.io/docs/specs/semconv/general/trace/) for low-cardinality service names. |
48
48
|`sdkName`| string |`microtel`|`telemetry.sdk.name` resource attribute, and the name of the instrumentation scope on exported spans. |
49
49
|`sdkVersion`| string | this package's version |`telemetry.sdk.version` resource attribute, and the scope version. |
50
-
|`filter`| string | all modules | Comma-separated list of modules to instrument. Supported values: `node:http`, `node:http/client`, `node:http/server`, and `node:undici`. `node:fetch` is an alias for `node:undici`: both cover all undici requests, including `fetch()`, and either one enables them. |
50
+
|`filter`| string | all modules | Comma-separated list of modules to instrument. Supported values: `node:http`, `node:http/client`, `node:http/server`, `node:http2`, `node:http2/server`, and `node:undici`. `node:http` covers `node:http/client` and `node:http/server`; `node:http2` covers `node:http2/server`. `node:fetch` is an alias for `node:undici`: both cover all undici requests, including `fetch()`, and either one enables them. |
51
51
|`exclude`| string | none | Comma-separated list of modules to exclude from instrumentation. Same values as `filter`; takes precedence over it. |
52
52
|`maxBufferSize`| number |`100`| Number of spans buffered before an immediate flush is triggered. Must be a positive integer. |
53
53
|`flushInterval`| number |`10000`| Milliseconds between periodic flushes. Must be a positive integer. |
@@ -93,6 +93,32 @@ Attributes set on server spans:
93
93
|`http.response.status_code`| Response status code | When response finishes |
94
94
|`error.type`| HTTP status code as string | On 5xx responses |
95
95
96
+
### HTTP/2 server
97
+
98
+
A span with kind `SERVER` is created for each incoming HTTP/2 request
99
+
stream, whether over cleartext (`http2.createServer`) or TLS
100
+
(`http2.createSecureServer`). The span starts when the request headers are
101
+
received and ends when the stream closes, so its duration covers the full
102
+
response transfer. Incoming `traceparent`/`tracestate` headers are parsed
103
+
with the same semantics as for HTTP/1.1 servers.
104
+
105
+
If a stream is aborted before the response completes, the span ends with an
106
+
error status. Server spans receive error status (`STATUS_ERROR`) for 5xx
107
+
response codes; 4xx responses are not server errors.
0 commit comments