Skip to content

Commit

Permalink
enable envoy environment resource detector for frontendproxy
Browse files Browse the repository at this point in the history
  • Loading branch information
rlankfo committed Dec 9, 2023
1 parent 18942fb commit 7cff41d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/frontendproxy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0


FROM envoyproxy/envoy:v1.28-latest
FROM envoyproxy/envoy:dev-698abe98131fa5c64904082407878d1fcc62cb88
RUN apt-get update && apt-get install -y gettext-base && apt-get clean && rm -rf /var/lib/apt/lists/*

USER envoy
Expand Down
4 changes: 4 additions & 0 deletions src/frontendproxy/envoy.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ static_resources:
cluster_name: opentelemetry_collector_grpc
timeout: 0.250s
service_name: frontend-proxy
resource_detectors:
- name: envoy.tracers.opentelemetry.resource_detectors.environment
typed_config:
"@type": type.googleapis.com/envoy.extensions.tracers.opentelemetry.resource_detectors.v3.EnvironmentResourceDetectorConfig
route_config:
name: local_route
virtual_hosts:
Expand Down

0 comments on commit 7cff41d

Please sign in to comment.