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
Undici instrumentation has few options available to choose from. You can set the following:
50
51
51
-
| Options | Type | Description |
52
-
| ------- | ---- | ----------- |
53
-
|[`ignoreRequestHook`](https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/plugins/node/opentelemetry-instrumentation-undici/src/types.ts#63)|`IgnoreRequestFunction`| Undici instrumentation will not trace all incoming requests that matched with custom function. |
54
-
|[`requestHook`](https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/plugins/node/opentelemetry-instrumentation-undici/src/types.ts#65)|`RequestHookFunction`| Function for adding custom attributes before request is handled. |
55
-
|[`startSpanHook`](https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/plugins/node/opentelemetry-instrumentation-undici/src/types.ts#67)|`StartSpanHookFunction`| Function for adding custom attributes before a span is started. |
56
-
|[`requireParentforSpans`](https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/plugins/node/opentelemetry-instrumentation-undici/src/types.ts#69)|`Boolean`| Require a parent span is present to create new span for outgoing requests. |
57
-
|[`headersToSpanAttributes`](https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/plugins/node/opentelemetry-instrumentation-undici/src/types.ts#71)|`Object`|List of case insensitive HTTP headers to convert to span attributes. Headers will be converted to span attributes in the form of `http.{request\|response}.header.header-name` where the name is only lowercased, e.g. `http.response.header.content-length`|
|[`ignoreRequestHook`](https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/plugins/node/instrumentation-undici/src/types.ts#L63)|`IgnoreRequestFunction`| Undici instrumentation will not trace all incoming requests that matched with custom function.|
55
+
|[`requestHook`](https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/plugins/node/instrumentation-undici/src/types.ts#L65)|`RequestHookFunction`| Function for adding custom attributes before request is handled.|
56
+
|[`startSpanHook`](https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/plugins/node/instrumentation-undici/src/types.ts#L67)|`StartSpanHookFunction`| Function for adding custom attributes before a span is started.|
57
+
|[`requireParentforSpans`](https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/plugins/node/instrumentation-undici/src/types.ts#L69)|`Boolean`| Require a parent span is present to create new span for outgoing requests.|
58
+
|[`headersToSpanAttributes`](https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/plugins/node/instrumentation-undici/src/types.ts#L71)|`Object`|List of case insensitive HTTP headers to convert to span attributes. Headers will be converted to span attributes in the form of `http.{request\|response}.header.header-name` where the name is only lowercased, e.g. `http.response.header.content-length`|
0 commit comments