faro.receiver
faro.receiver accepts web application telemetry data from the Grafana Faro Web SDK and forwards it to other components for processing.
Note
This component does not work with Grafana Cloud Frontend Observability. For more information, refer to the Choose a component guide.
Usage
faro.receiver "<LABEL>" {
output {
logs = [<LOKI_RECEIVERS>]
traces = [<OTELCOL_COMPONENTS>]
}
}Arguments
You can use the following arguments with faro.receiver:
Log format
The following strings are valid log line formats:
"json": Export logs as JSON objects."logfmt": Export logs aslogfmtlines.
Blocks
You can use the following blocks with faro.receiver:
No valid configuration blocks found.
output
RequiredThe output block specifies where to forward collected logs and traces.
server
The server block configures the HTTP server managed by the faro.receiver component.
Clients using the Grafana Faro Web SDK forward telemetry data to this HTTP server for processing.
By default, telemetry data is only accepted from applications on the same local network as the browser.
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.
The cors_allowed_origins argument determines what origins browser requests may come from.
The default value, [], disables CORS support.
To support requests from all origins, set cors_allowed_origins to ["*"].
The * character indicates a wildcard.
You can use the following headers for cross-domain requests: Content-Type, Content-Encoding, Idempotency-Key, Traceparent, X-API-Key, X-Faro-Session-Id, or X-Scope-OrgID.
Browser clients can read the Retry-After response header when it’s present.