envoyproxy/envoy

Tracing custom tags not being added to mirrored request

Open

#11.033 geöffnet am 1. Mai 2020

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C++ (5.373 Forks)batch import
area/tracinghelp wanted

Repository-Metriken

Stars
 (27.997 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 8T) (378 gemergte PRs in 30 T)

Beschreibung

@kyessenov When adding custom tags in tracing, the mirrored request does not receive the same custom tags. Below is my config:

  http:
    name: envoy.tracers.datadog
    config:
      collector_cluster: test-tracing
      service_name: test-tracing

static_resources:
  listeners:
    - name: test_listener
      address:
        socket_address: { address: 0.0.0.0, port_value: 80 }
      filter_chains:
        - filters:
            - name: envoy.filters.network.http_connection_manager
              config:
                tracing:
                  custom_tags: [{"tag": "env","literal": {"value": "${ENV}"}}]
                stat_prefix: ingress_http
                route_config:
                  name: test_route
                  virtual_hosts:
                    - name: test_service
                      domains: ["*"]
                      routes:
                        - match: { prefix: "/" }
                          route:
                            cluster: xxx
                            request_mirror_policies: [{cluster: yyy}]
                http_filters:
                  - name: envoy.filters.http.router

Contributor Guide