@@ -29,21 +29,24 @@ faro.receiver "<LABEL>" {
29
29
30
30
You can use the following arguments with ` faro.receiver ` :
31
31
32
- Name | Type | Description | Default | Required
33
- -------------------| ---------------| ----------------------------------------------| ---------| ---------
34
- ` extra_log_labels ` | ` map(string) ` | Extra labels to attach to emitted log lines. | ` {} ` | no
32
+ | Name | Type | Description | Default | Required |
33
+ | ------------------ | ------------- | -------------------------------------------- | -------- | -------- |
34
+ | ` extra_log_labels ` | ` map(string) ` | Extra labels to attach to emitted log lines. | ` {} ` | no |
35
35
36
36
## Blocks
37
37
38
38
You can use the following blocks with ` faro.receiver ` :
39
39
40
- Block | Description | Required
41
- ---------------------------------------------|------------------------------------------------------|---------
42
- [ ` output ` ] [ output ] | Configures where to send collected telemetry data. | yes
43
- [ ` server ` ] [ server ] | Configures the HTTP server. | no
44
- ` server ` > [ ` rate_limiting ` ] [ rate_limiting ] | Configures rate limiting for the HTTP server. | no
45
- [ ` sourcemaps ` ] [ sourcemaps ] | Configures sourcemap retrieval. | no
46
- ` sourcemaps ` > [ ` location ` ] [ location ] | Configures on-disk location for sourcemap retrieval. | no
40
+ | Block | Description | Required |
41
+ | -------------------------------------------- | ---------------------------------------------------- | -------- |
42
+ | [ ` output ` ] [ output ] | Configures where to send collected telemetry data. | yes |
43
+ | [ ` server ` ] [ server ] | Configures the HTTP server. | no |
44
+ | ` server ` > [ ` rate_limiting ` ] [ rate_limiting ] | Configures rate limiting for the HTTP server. | no |
45
+ | [ ` sourcemaps ` ] [ sourcemaps ] | Configures sourcemap retrieval. | no |
46
+ | ` sourcemaps ` > [ ` location ` ] [ location ] | Configures on-disk location for sourcemap retrieval. | no |
47
+
48
+ The > symbol indicates deeper levels of nesting.
49
+ For example, ` sourcemaps ` > ` location ` refers to a ` location ` block defined inside an ` sourcemaps ` block.
47
50
48
51
[ location ] : #location
49
52
[ output ] : #output
@@ -55,24 +58,24 @@ Block | Description
55
58
56
59
The ` output ` block specifies where to forward collected logs and traces.
57
60
58
- Name | Type | Description | Default | Required
59
- ---------| --------------------------| ------------------------------------------------------| ---------| ---------
60
- ` logs ` | ` list(LogsReceiver) ` | A list of ` loki ` components to forward logs to. | ` [] ` | no
61
- ` traces ` | ` list(otelcol.Consumer) ` | A list of ` otelcol ` components to forward traces to. | ` [] ` | no
61
+ | Name | Type | Description | Default | Required |
62
+ | -------- | ------------------------ | ---------------------------------------------------- | ------- | -------- |
63
+ | ` logs ` | ` list(LogsReceiver) ` | A list of ` loki ` components to forward logs to. | ` [] ` | no |
64
+ | ` traces ` | ` list(otelcol.Consumer) ` | A list of ` otelcol ` components to forward traces to. | ` [] ` | no |
62
65
63
66
### ` server `
64
67
65
68
The ` server ` block configures the HTTP server managed by the ` faro.receiver ` component.
66
69
Clients using the [ Grafana Faro Web SDK] [ faro-sdk ] forward telemetry data to this HTTP server for processing.
67
70
68
- Name | Type | Description | Default | Required
69
- ---------------------------| ----------------| -----------------------------------------------------------------| -------------| ---------
70
- ` listen_address ` | ` string ` | Address to listen for HTTP traffic on. | ` 127.0.0.1 ` | no
71
- ` listen_port ` | ` number ` | Port to listen for HTTP traffic on. | ` 12347 ` | no
72
- ` cors_allowed_origins ` | ` list(string) ` | Origins for which cross-origin requests are permitted. | ` [] ` | no
73
- ` api_key ` | ` secret ` | Optional API key to validate client requests with. | ` "" ` | no
74
- ` max_allowed_payload_size ` | ` string ` | Maximum size (in bytes) for client requests. | ` "5MiB" ` | no
75
- ` include_metadata ` | ` boolean ` | Propagate incoming connection metadata to downstream consumers. | ` false ` | no
71
+ | Name | Type | Description | Default | Required |
72
+ | -------------------------- | -------------- | --------------------------------------------------------------- | ----------- | -------- |
73
+ | ` listen_address ` | ` string ` | Address to listen for HTTP traffic on. | ` 127.0.0.1 ` | no |
74
+ | ` listen_port ` | ` number ` | Port to listen for HTTP traffic on. | ` 12347 ` | no |
75
+ | ` cors_allowed_origins ` | ` list(string) ` | Origins for which cross-origin requests are permitted. | ` [] ` | no |
76
+ | ` api_key ` | ` secret ` | Optional API key to validate client requests with. | ` "" ` | no |
77
+ | ` max_allowed_payload_size ` | ` string ` | Maximum size (in bytes) for client requests. | ` "5MiB" ` | no |
78
+ | ` include_metadata ` | ` boolean ` | Propagate incoming connection metadata to downstream consumers. | ` false ` | no |
76
79
77
80
By default, telemetry data is only accepted from applications on the same local network as the browser.
78
81
To accept telemetry data from a wider set of clients, modify the ` listen_address ` attribute to the IP address of the appropriate network interface to use.
@@ -90,11 +93,11 @@ If the `api_key` argument is empty, no authentication checks are performed, and
90
93
91
94
The ` rate_limiting ` block configures rate limiting for client requests.
92
95
93
- Name | Type | Description | Default | Required
94
- -------------| ----------| --------------------------------------| ---------| ---------
95
- ` enabled ` | ` bool ` | Whether to enable rate limiting. | ` true ` | no
96
- ` rate ` | ` number ` | Rate of allowed requests per second. | ` 50 ` | no
97
- ` burst_size ` | ` number ` | Allowed burst size of requests. | ` 100 ` | no
96
+ | Name | Type | Description | Default | Required |
97
+ | ------------ | -------- | ------------------------------------ | ------- | -------- |
98
+ | ` enabled ` | ` bool ` | Whether to enable rate limiting. | ` true ` | no |
99
+ | ` rate ` | ` number ` | Rate of allowed requests per second. | ` 50 ` | no |
100
+ | ` burst_size ` | ` number ` | Allowed burst size of requests. | ` 100 ` | no |
98
101
99
102
Rate limiting functions as a [ token bucket algorithm] [ token-bucket ] , where a bucket has a maximum capacity for up to ` burst_size ` requests and refills at a rate of ` rate ` per second.
100
103
@@ -109,11 +112,11 @@ Configuring the `rate` argument determines how fast the bucket refills, and conf
109
112
The ` sourcemaps ` block configures how to retrieve sourcemaps.
110
113
Sourcemaps are then used to transform file and line information from minified code into the file and line information from the original source code.
111
114
112
- Name | Type | Description | Default | Required
113
- ------------------------| ----------------| --------------------------------------------| ---------| ---------
114
- ` download ` | ` bool ` | Whether to download sourcemaps. | ` true ` | no
115
- ` download_from_origins ` | ` list(string) ` | Which origins to download sourcemaps from. | ` ["*"] ` | no
116
- ` download_timeout ` | ` duration ` | Timeout when downloading sourcemaps. | ` "1s" ` | no
115
+ | Name | Type | Description | Default | Required |
116
+ | ----------------------- | -------------- | ------------------------------------------ | ------- | -------- |
117
+ | ` download ` | ` bool ` | Whether to download sourcemaps. | ` true ` | no |
118
+ | ` download_from_origins ` | ` list(string) ` | Which origins to download sourcemaps from. | ` ["*"] ` | no |
119
+ | ` download_timeout ` | ` duration ` | Timeout when downloading sourcemaps. | ` "1s" ` | no |
117
120
118
121
When exceptions are sent to the ` faro.receiver ` component, it can download sourcemaps from the web application.
119
122
You can disable this behavior by setting the ` download ` argument to ` false ` .
@@ -134,10 +137,10 @@ When `location` blocks are provided, they're checked first for sourcemaps before
134
137
The ` location ` block declares a location where sourcemaps are stored on the filesystem.
135
138
You can specify the ` location ` block multiple times to declare multiple locations where sourcemaps are stored.
136
139
137
- Name | Type | Description | Default | Required
138
- -----------------------| ----------| -----------------------------------------------------| ---------| ---------
139
- ` minified_path_prefix ` | ` string ` | The prefix of the minified path sent from browsers. | | yes
140
- ` path ` | ` string ` | The path on disk where sourcemaps are stored. | | yes
140
+ | Name | Type | Description | Default | Required |
141
+ | ---------------------- | -------- | --------------------------------------------------- | ------- | -------- |
142
+ | ` minified_path_prefix ` | ` string ` | The prefix of the minified path sent from browsers. | | yes |
143
+ | ` path ` | ` string ` | The path on disk where sourcemaps are stored. | | yes |
141
144
142
145
The ` minified_path_prefix ` argument determines the prefix of paths to JavaScript files, such as ` http://example.com/ ` .
143
146
The ` path ` argument then determines where to find the sourcemap for the file.
0 commit comments