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
|`WithNext`|`func(*fiber.Ctx) bool`| Define a function to skip this middleware when returned true .| nil |
40
-
|`WithTracerProvider`|`oteltrace.TracerProvider`| Specifies a tracer provider to use for creating a tracer. | nil - the global tracer provider is used |
41
-
|`WithMeterProvider`|`otelmetric.MeterProvider`| Specifies a meter provider to use for reporting. | nil - the global meter provider is used |
42
-
|`WithPort`|`int`| Specifies the value to use when setting the `net.host.port` attribute on metrics/spans. | Defaults to (`80` for `http`, `443` for `https`) |
43
-
|`WithPropagators`|`propagation.TextMapPropagator`| Specifies propagators to use for extracting information from the HTTP requests. | If none are specified, global ones will be used |
44
-
|`WithServerName`|`string`| Specifies the value to use when setting the `http.server_name` attribute on metrics/spans. | - |
45
-
|`WithSpanNameFormatter`|`func(*fiber.Ctx) string`| Takes a function that will be called on every request and the returned string will become the span Name. | Default formatter returns the route pathRaw |
46
-
|`WithCustomAttributes`|`func(*fiber.Ctx) []attribute.KeyValue`| Define a function to add custom attributes to the span. | nil |
47
-
|`WithCollectClientIP`|`bool`| Specifies whether to collect the client's IP address from the request. | true |
37
+
| Function | Argument Type | Description | Default |
|`WithNext`|`func(*fiber.Ctx) bool`| Define a function to skip this middleware when returned true .| nil |
40
+
|`WithTracerProvider`|`oteltrace.TracerProvider`| Specifies a tracer provider to use for creating a tracer. | nil - the global tracer provider is used |
41
+
|`WithMeterProvider`|`otelmetric.MeterProvider`| Specifies a meter provider to use for reporting. | nil - the global meter provider is used |
42
+
|`WithPort`|`int`| Specifies the value to use when setting the `net.host.port` attribute on metrics/spans. | Defaults to (`80` for `http`, `443` for `https`) |
43
+
|`WithPropagators`|`propagation.TextMapPropagator`| Specifies propagators to use for extracting information from the HTTP requests. | If none are specified, global ones will be used |
44
+
|`WithServerName`|`string`| Specifies the value to use when setting the `http.server_name` attribute on metrics/spans. | - |
45
+
|`WithSpanNameFormatter`|`func(*fiber.Ctx) string`| Takes a function that will be called on every request and the returned string will become the span Name. | Default formatter returns the route pathRaw |
46
+
|`WithCustomAttributes`|`func(*fiber.Ctx) []attribute.KeyValue`| Define a function to add custom attributes to the span. | nil |
47
+
|`WithCustomMetricAttributes`|`func(*fiber.Ctx) []attribute.KeyValue`| Define a function to add custom attributes to the metrics. | nil |
48
+
|`WithCollectClientIP`|`bool`| Specifies whether to collect the client's IP address from the request. | true |
0 commit comments