api: extract tracing protos from bootstrap (#342)
Signed-off-by: Taiki Ono <taiks.4559@gmail.com>pull/344/head
parent
9e967b37ee
commit
3deffbd132
6 changed files with 65 additions and 48 deletions
@ -0,0 +1,54 @@ |
||||
// [#protodoc-title: Tracing] |
||||
// Tracing :ref:`architecture overview <arch_overview_tracing>`. |
||||
|
||||
syntax = "proto3"; |
||||
|
||||
package envoy.api.v2; |
||||
|
||||
import "google/protobuf/struct.proto"; |
||||
|
||||
import "validate/validate.proto"; |
||||
|
||||
// The tracing configuration specifies global |
||||
// settings for the HTTP tracer used by Envoy. The configuration is defined by |
||||
// the :ref:`Bootstrap <envoy_api_msg_Bootstrap>` :ref:`tracing |
||||
// <envoy_api_field_Bootstrap.tracing>` field. Envoy may support other tracers |
||||
// in the future, but right now the HTTP tracer is the only one supported. |
||||
message Tracing { |
||||
message Http { |
||||
// The name of the HTTP trace driver to instantiate. The name must match a |
||||
// supported HTTP trace driver. *envoy.lightstep* and *envoy.zipkin* are |
||||
// built-in trace drivers. |
||||
string name = 1 [(validate.rules).string.min_bytes = 1]; |
||||
|
||||
// Trace driver specific configuration which depends on the driver being |
||||
// instantiated. See the :ref:`LightstepConfig |
||||
// <envoy_api_msg_LightstepConfig>` and :ref:`ZipkinConfig |
||||
// <envoy_api_msg_ZipkinConfig>` trace drivers for examples. |
||||
google.protobuf.Struct config = 2; |
||||
} |
||||
// Provides configuration for the HTTP tracer. |
||||
Http http = 1; |
||||
} |
||||
|
||||
// Configuration for the LightStep tracer. |
||||
message LightstepConfig { |
||||
// The cluster manager cluster that hosts the LightStep collectors. |
||||
string collector_cluster = 1 [(validate.rules).string.min_bytes = 1]; |
||||
|
||||
// File containing the access token to the `LightStep |
||||
// <http://lightstep.com/>`_ API. |
||||
string access_token_file = 2 [(validate.rules).string.min_bytes = 1]; |
||||
} |
||||
|
||||
message ZipkinConfig { |
||||
// The cluster manager cluster that hosts the Zipkin collectors. Note that the |
||||
// Zipkin cluster must be defined in the :ref:`Bootstrap static cluster |
||||
// resources <envoy_api_field_Bootstrap.StaticResources.clusters>`. |
||||
string collector_cluster = 1 [(validate.rules).string.min_bytes = 1]; |
||||
|
||||
// The API endpoint of the Zipkin service where the spans will be sent. When |
||||
// using a standard Zipkin installation, the API endpoint is typically |
||||
// /api/v1/spans, which is the default value. |
||||
string collector_endpoint = 2 [(validate.rules).string.min_bytes = 1]; |
||||
} |
Loading…
Reference in new issue