ResourceInstrumentationConfiginterface
Configuration for the resource load instrumentation.
The phase metrics record nonzero samples only: with connection reuse most requests have no DNS/TCP/TLS phase at all, and recording those zeros would drown the distributions. Each histogram therefore answers "when this phase happened, what did it cost". Cross-origin resources without a Timing-Allow-Origin header withhold the detailed timings and sizes and contribute no phase/throughput samples.
Properties (15)
| Property | Type | Default | Required | Description |
|---|---|---|---|---|
| cacheStateMetric⚓︎ | boolean | string | null | false | x | If |
| connectDurationMetric⚓︎ | boolean | string | null | false | x | If |
| connectDurationMetricBuckets⚓︎ | number[] | [0.001, 0.0025, 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5] | x | Explicit histogram bucket boundaries for connectDurationMetric, in seconds, ascending. |
| dnsDurationMetric⚓︎ | boolean | string | null | false | x | If |
| dnsDurationMetricBuckets⚓︎ | number[] | [0.001, 0.0025, 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5] | x | Explicit histogram bucket boundaries for dnsDurationMetric, in seconds, ascending. |
| downloadThroughputMetric⚓︎ | boolean | string | null | false | x | If |
| downloadThroughputMetricBuckets⚓︎ | number[] | [65536, 262144, 1048576, 4194304, 16777216, 67108864, 268435456] | x | Explicit histogram bucket boundaries for downloadThroughputMetric, in bytes per second, ascending. |
| downloadThroughputMinBytes⚓︎ | number | 32768 | x | Minimum encodedBodySize, in bytes, for a resource to contribute a downloadThroughputMetric sample. |
| enabled⚓︎ | boolean | x | Whether the resource instrumentation is enabled. |
|
| firstByteDurationMetric⚓︎ | boolean | string | null | false | x | If |
| firstByteDurationMetricBuckets⚓︎ | number[] | [0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10] | x | Explicit histogram bucket boundaries for firstByteDurationMetric, in seconds, ascending. |
| skipRequests⚓︎ | boolean | true | x | If |
| tlsDurationMetric⚓︎ | boolean | string | null | false | x | If |
| tlsDurationMetricBuckets⚓︎ | number[] | [0.001, 0.0025, 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5] | x | Explicit histogram bucket boundaries for tlsDurationMetric, in seconds, ascending. |
| trace⚓︎ | boolean | true | x | If |