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: docs/GettingStarted.md
+35Lines changed: 35 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -142,9 +142,44 @@ Where `options` is an optional `Hash` that accepts the following parameters:
142
142
|``service_name``| Service name used when tracing application requests | rack |
143
143
|``distributed_tracing``| Enables [distributed tracing](#Distributed_Tracing) so that this service trace is connected with a trace of another service if tracing headers are received |`false`|
144
144
|``middleware_names``| Enable this if you want to use the middleware classes as the resource names for `rack` spans. Must provide the ``application`` option with it. |``false``|
145
+
|``quantize``| Hash containing options for quantization. May include `:query` or `:fragment`. | {} |
146
+
|``quantize.query``| Hash containing options for query portion of URL quantization. May include `:show` or `:exclude`. See options below. Option must be nested inside the `quantize` option. | {} |
147
+
|``quantize.query.show``| Defines which values should always be shown. Shows no values by default. May be an Array of strings, or `:all` to show all values. Option must be nested inside the `query` option. |``nil``|
148
+
|``quantize.query.exclude``| Defines which values should be removed entirely. Excludes nothing by default. May be an Array of strings, or `:all` to remove the query string entirely. Option must be nested inside the `query` option. |``nil``|
149
+
|``quantize.fragment``| Defines behavior for URL fragments. Removes fragments by default. May be `:show` to show URL fragments. Option must be nested inside the `quantize` option. |``nil``|
145
150
|``application``| Your Rack application. Necessary for enabling middleware resource names. |``nil``|
146
151
|``tracer``| A ``Datadog::Tracer`` instance used to instrument the application. Usually you don't need to set that. |``Datadog.tracer``|
147
152
153
+
Configuring URL quantization behavior:
154
+
155
+
```
156
+
Datadog.configure do |c|
157
+
# Default behavior: all values are quantized, fragment is removed.
0 commit comments