forked from open-telemetry/opentelemetry-demo
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FrontendProxy] Add tracing to Envoy (open-telemetry#613)
* Add tracing to Envoy * Changelog * yamllint * lint * Add doc * Add note to doc * Move env var definition
- Loading branch information
1 parent
7212399
commit 057d1c6
Showing
5 changed files
with
94 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Frontend Proxy(Envoy) | ||
|
||
The frontend proxy is used as a reverse proxy for user-facing web | ||
interfaces such as the frontend, Jaeger, Grafana, load generator, | ||
and feature flag service. | ||
|
||
## Enabling OpenTelemetry | ||
|
||
**NOTE: Only non-synthetic requests will trigger the envoy tracing.** | ||
|
||
In order to enable Envoy to produce spans whenever receiving a request, | ||
the following configuration is required: | ||
|
||
```yaml | ||
static_resources: | ||
listeners: | ||
- address: | ||
socket_address: | ||
address: 0.0.0.0 | ||
port_value: ${ENVOY_PORT} | ||
filter_chains: | ||
- filters: | ||
- name: envoy.filters.network.http_connection_manager | ||
typed_config: | ||
"@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager | ||
codec_type: AUTO | ||
stat_prefix: ingress_http | ||
tracing: | ||
provider: | ||
name: envoy.tracers.opentelemetry | ||
typed_config: | ||
"@type": type.googleapis.com/envoy.config.trace.v3.OpenTelemetryConfig | ||
grpc_service: | ||
envoy_grpc: | ||
cluster_name: opentelemetry_collector | ||
timeout: 0.250s | ||
service_name: frontend-proxy | ||
|
||
clusters: | ||
- name: opentelemetry_collector | ||
type: STRICT_DNS | ||
lb_policy: ROUND_ROBIN | ||
typed_extension_protocol_options: | ||
envoy.extensions.upstreams.http.v3.HttpProtocolOptions: | ||
"@type": type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions | ||
explicit_http_config: | ||
http2_protocol_options: {} | ||
load_assignment: | ||
cluster_name: opentelemetry_collector | ||
endpoints: | ||
- lb_endpoints: | ||
- endpoint: | ||
address: | ||
socket_address: | ||
address: ${OTEL_COLLECTOR_HOST} | ||
port_value: ${OTEL_COLLECTOR_PORT} | ||
``` | ||
Where `OTEL_COLLECTOR_HOST` and `OTEL_COLLECTOR_PORT` are passed via | ||
environment variables. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters