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
Copy file name to clipboardexpand all lines: packages/opentelemetry-instrumentation-http/README.md
+10-8
Original file line number
Diff line number
Diff line change
@@ -47,14 +47,16 @@ Http instrumentation has few options available to choose from. You can set the f
47
47
48
48
| Options | Type | Description |
49
49
| ------- | ---- | ----------- |
50
-
|[`applyCustomAttributesOnSpan`](https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-instrumentation-http/src/types.ts#L79)|`HttpCustomAttributeFunction`| Function for adding custom attributes |
51
-
|[`requestHook`](https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-instrumentation-http/src/types.ts#81)|`HttpRequestCustomAttributeFunction`| Function for adding custom attributes before request is handled |
52
-
|[`responseHook`](https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-instrumentation-http/src/types.ts#L83)|`HttpResponseCustomAttributeFunction`| Function for adding custom attributes before response is handled |
53
-
|[`ignoreIncomingPaths`](https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-instrumentation-http/src/types.ts#L75)|`IgnoreMatcher[]`| Http instrumentation will not trace all incoming requests that match paths |
54
-
|[`ignoreOutgoingUrls`](https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-instrumentation-http/src/types.ts#L77)|`IgnoreMatcher[]`| Http instrumentation will not trace all outgoing requests that match urls |
55
-
|[`serverName`](https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-instrumentation-http/src/types.ts#L85)|`string`| The primary server name of the matched virtual host. |
56
-
|`requireParentforOutgoingSpans`| Boolean | Require that is a parent span to create new span for outgoing requests. |
57
-
|`requireParentforIncomingSpans`| Boolean | Require that is a parent span to create new span for incoming requests. |
50
+
|[`applyCustomAttributesOnSpan`](https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-instrumentation-http/src/types.ts#L91)|`HttpCustomAttributeFunction`| Function for adding custom attributes |
51
+
|[`requestHook`](https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-instrumentation-http/src/types.ts#93)|`HttpRequestCustomAttributeFunction`| Function for adding custom attributes before request is handled |
52
+
|[`responseHook`](https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-instrumentation-http/src/types.ts#L95)|`HttpResponseCustomAttributeFunction`| Function for adding custom attributes before response is handled |
53
+
|[`startIncomingSpanHook`](https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-instrumentation-http/src/types.ts#L97)|`StartIncomingSpanCustomAttributeFunction`| Function for adding custom attributes before a span is started in incomingRequest |
54
+
|[`startOutgoingSpanHook`](https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-instrumentation-http/src/types.ts#L99)|`StartOutgoingSpanCustomAttributeFunction`| Function for adding custom attributes before a span is started in outgoingRequest |
55
+
|[`ignoreIncomingPaths`](https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-instrumentation-http/src/types.ts#L87)|`IgnoreMatcher[]`| Http instrumentation will not trace all incoming requests that match paths |
56
+
|[`ignoreOutgoingUrls`](https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-instrumentation-http/src/types.ts#L89)|`IgnoreMatcher[]`| Http instrumentation will not trace all outgoing requests that match urls |
57
+
|[`serverName`](https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-instrumentation-http/src/types.ts#L101)|`string`| The primary server name of the matched virtual host. |
58
+
|[`requireParentforOutgoingSpans`](https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-instrumentation-http/src/types.ts#L103)| Boolean | Require that is a parent span to create new span for outgoing requests. |
59
+
|[`requireParentforIncomingSpans`](https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-instrumentation-http/src/types.ts#L105)| Boolean | Require that is a parent span to create new span for incoming requests. |
* Options available for the HTTP instrumentation (see [documentation](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-instrumentation-http#http-instrumentation-options))
0 commit comments