v2

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTrace = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTrace   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type DynamicOtConfig

type DynamicOtConfig struct {
	// Dynamic library implementing the `OpenTracing API
	// <https://github.com/opentracing/opentracing-cpp>`_.
	Library string `protobuf:"bytes,1,opt,name=library,proto3" json:"library,omitempty"`
	// The configuration to use when creating a tracer from the given dynamic
	// library.
	Config               *types.Struct `protobuf:"bytes,2,opt,name=config" json:"config,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

DynamicOtConfig is used to dynamically load a tracer from a shared library that implements the `OpenTracing dynamic loading API <https://github.com/opentracing/opentracing-cpp>`_.

func (*DynamicOtConfig) Descriptor

func (*DynamicOtConfig) Descriptor() ([]byte, []int)

func (*DynamicOtConfig) GetConfig

func (m *DynamicOtConfig) GetConfig() *types.Struct

func (*DynamicOtConfig) GetLibrary

func (m *DynamicOtConfig) GetLibrary() string

func (*DynamicOtConfig) Marshal

func (m *DynamicOtConfig) Marshal() (dAtA []byte, err error)

func (*DynamicOtConfig) MarshalTo

func (m *DynamicOtConfig) MarshalTo(dAtA []byte) (int, error)

func (*DynamicOtConfig) ProtoMessage

func (*DynamicOtConfig) ProtoMessage()

func (*DynamicOtConfig) Reset

func (m *DynamicOtConfig) Reset()

func (*DynamicOtConfig) Size

func (m *DynamicOtConfig) Size() (n int)

func (*DynamicOtConfig) String

func (m *DynamicOtConfig) String() string

func (*DynamicOtConfig) Unmarshal

func (m *DynamicOtConfig) Unmarshal(dAtA []byte) error

func (*DynamicOtConfig) Validate

func (m *DynamicOtConfig) Validate() error

Validate checks the field values on DynamicOtConfig with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*DynamicOtConfig) XXX_DiscardUnknown

func (m *DynamicOtConfig) XXX_DiscardUnknown()

func (*DynamicOtConfig) XXX_Marshal

func (m *DynamicOtConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DynamicOtConfig) XXX_Merge

func (dst *DynamicOtConfig) XXX_Merge(src proto.Message)

func (*DynamicOtConfig) XXX_Size

func (m *DynamicOtConfig) XXX_Size() int

func (*DynamicOtConfig) XXX_Unmarshal

func (m *DynamicOtConfig) XXX_Unmarshal(b []byte) error

type DynamicOtConfigValidationError

type DynamicOtConfigValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

DynamicOtConfigValidationError is the validation error returned by DynamicOtConfig.Validate if the designated constraints aren't met.

func (DynamicOtConfigValidationError) Error

Error satisfies the builtin error interface

type LightstepConfig

type LightstepConfig struct {
	// The cluster manager cluster that hosts the LightStep collectors.
	CollectorCluster string `protobuf:"bytes,1,opt,name=collector_cluster,json=collectorCluster,proto3" json:"collector_cluster,omitempty"`
	// File containing the access token to the `LightStep
	// <http://lightstep.com/>`_ API.
	AccessTokenFile      string   `protobuf:"bytes,2,opt,name=access_token_file,json=accessTokenFile,proto3" json:"access_token_file,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Configuration for the LightStep tracer.

func (*LightstepConfig) Descriptor

func (*LightstepConfig) Descriptor() ([]byte, []int)

func (*LightstepConfig) GetAccessTokenFile

func (m *LightstepConfig) GetAccessTokenFile() string

func (*LightstepConfig) GetCollectorCluster

func (m *LightstepConfig) GetCollectorCluster() string

func (*LightstepConfig) Marshal

func (m *LightstepConfig) Marshal() (dAtA []byte, err error)

func (*LightstepConfig) MarshalTo

func (m *LightstepConfig) MarshalTo(dAtA []byte) (int, error)

func (*LightstepConfig) ProtoMessage

func (*LightstepConfig) ProtoMessage()

func (*LightstepConfig) Reset

func (m *LightstepConfig) Reset()

func (*LightstepConfig) Size

func (m *LightstepConfig) Size() (n int)

func (*LightstepConfig) String

func (m *LightstepConfig) String() string

func (*LightstepConfig) Unmarshal

func (m *LightstepConfig) Unmarshal(dAtA []byte) error

func (*LightstepConfig) Validate

func (m *LightstepConfig) Validate() error

Validate checks the field values on LightstepConfig with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*LightstepConfig) XXX_DiscardUnknown

func (m *LightstepConfig) XXX_DiscardUnknown()

func (*LightstepConfig) XXX_Marshal

func (m *LightstepConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LightstepConfig) XXX_Merge

func (dst *LightstepConfig) XXX_Merge(src proto.Message)

func (*LightstepConfig) XXX_Size

func (m *LightstepConfig) XXX_Size() int

func (*LightstepConfig) XXX_Unmarshal

func (m *LightstepConfig) XXX_Unmarshal(b []byte) error

type LightstepConfigValidationError

type LightstepConfigValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

LightstepConfigValidationError is the validation error returned by LightstepConfig.Validate if the designated constraints aren't met.

func (LightstepConfigValidationError) Error

Error satisfies the builtin error interface

type TraceServiceConfig

type TraceServiceConfig struct {
	// The upstream gRPC cluster that hosts the metrics service.
	GrpcService          *core.GrpcService `protobuf:"bytes,1,opt,name=grpc_service,json=grpcService" json:"grpc_service,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

Configuration structure.

func (*TraceServiceConfig) Descriptor

func (*TraceServiceConfig) Descriptor() ([]byte, []int)

func (*TraceServiceConfig) GetGrpcService

func (m *TraceServiceConfig) GetGrpcService() *core.GrpcService

func (*TraceServiceConfig) Marshal

func (m *TraceServiceConfig) Marshal() (dAtA []byte, err error)

func (*TraceServiceConfig) MarshalTo

func (m *TraceServiceConfig) MarshalTo(dAtA []byte) (int, error)

func (*TraceServiceConfig) ProtoMessage

func (*TraceServiceConfig) ProtoMessage()

func (*TraceServiceConfig) Reset

func (m *TraceServiceConfig) Reset()

func (*TraceServiceConfig) Size

func (m *TraceServiceConfig) Size() (n int)

func (*TraceServiceConfig) String

func (m *TraceServiceConfig) String() string

func (*TraceServiceConfig) Unmarshal

func (m *TraceServiceConfig) Unmarshal(dAtA []byte) error

func (*TraceServiceConfig) Validate

func (m *TraceServiceConfig) Validate() error

Validate checks the field values on TraceServiceConfig with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*TraceServiceConfig) XXX_DiscardUnknown

func (m *TraceServiceConfig) XXX_DiscardUnknown()

func (*TraceServiceConfig) XXX_Marshal

func (m *TraceServiceConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TraceServiceConfig) XXX_Merge

func (dst *TraceServiceConfig) XXX_Merge(src proto.Message)

func (*TraceServiceConfig) XXX_Size

func (m *TraceServiceConfig) XXX_Size() int

func (*TraceServiceConfig) XXX_Unmarshal

func (m *TraceServiceConfig) XXX_Unmarshal(b []byte) error

type TraceServiceConfigValidationError

type TraceServiceConfigValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

TraceServiceConfigValidationError is the validation error returned by TraceServiceConfig.Validate if the designated constraints aren't met.

func (TraceServiceConfigValidationError) Error

Error satisfies the builtin error interface

type Tracing

type Tracing struct {
	// Provides configuration for the HTTP tracer.
	Http                 *Tracing_Http `protobuf:"bytes,1,opt,name=http" json:"http,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

The tracing configuration specifies global settings for the HTTP tracer used by Envoy. The configuration is defined by the :ref:`Bootstrap <envoy_api_msg_config.bootstrap.v2.Bootstrap>` :ref:`tracing <envoy_api_field_config.bootstrap.v2.Bootstrap.tracing>` field. Envoy may support other tracers in the future, but right now the HTTP tracer is the only one supported.

func (*Tracing) Descriptor

func (*Tracing) Descriptor() ([]byte, []int)

func (*Tracing) GetHttp

func (m *Tracing) GetHttp() *Tracing_Http

func (*Tracing) Marshal

func (m *Tracing) Marshal() (dAtA []byte, err error)

func (*Tracing) MarshalTo

func (m *Tracing) MarshalTo(dAtA []byte) (int, error)

func (*Tracing) ProtoMessage

func (*Tracing) ProtoMessage()

func (*Tracing) Reset

func (m *Tracing) Reset()

func (*Tracing) Size

func (m *Tracing) Size() (n int)

func (*Tracing) String

func (m *Tracing) String() string

func (*Tracing) Unmarshal

func (m *Tracing) Unmarshal(dAtA []byte) error

func (*Tracing) Validate

func (m *Tracing) Validate() error

Validate checks the field values on Tracing with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Tracing) XXX_DiscardUnknown

func (m *Tracing) XXX_DiscardUnknown()

func (*Tracing) XXX_Marshal

func (m *Tracing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Tracing) XXX_Merge

func (dst *Tracing) XXX_Merge(src proto.Message)

func (*Tracing) XXX_Size

func (m *Tracing) XXX_Size() int

func (*Tracing) XXX_Unmarshal

func (m *Tracing) XXX_Unmarshal(b []byte) error

type TracingValidationError

type TracingValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

TracingValidationError is the validation error returned by Tracing.Validate if the designated constraints aren't met.

func (TracingValidationError) Error

func (e TracingValidationError) Error() string

Error satisfies the builtin error interface

type Tracing_Http

type Tracing_Http struct {
	// The name of the HTTP trace driver to instantiate. The name must match a
	// supported HTTP trace driver. *envoy.lightstep*, *envoy.zipkin*, and
	// *envoy.dynamic.ot* are built-in trace drivers.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Trace driver specific configuration which depends on the driver being
	// instantiated. See the :ref:`LightstepConfig
	// <envoy_api_msg_config.trace.v2.LightstepConfig>`, :ref:`ZipkinConfig
	// <envoy_api_msg_config.trace.v2.ZipkinConfig>`, and :ref:`DynamicOtConfig
	// <envoy_api_msg_config.trace.v2.DynamicOtConfig>` trace drivers for examples.
	Config               *types.Struct `protobuf:"bytes,2,opt,name=config" json:"config,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*Tracing_Http) Descriptor

func (*Tracing_Http) Descriptor() ([]byte, []int)

func (*Tracing_Http) GetConfig

func (m *Tracing_Http) GetConfig() *types.Struct

func (*Tracing_Http) GetName

func (m *Tracing_Http) GetName() string

func (*Tracing_Http) Marshal

func (m *Tracing_Http) Marshal() (dAtA []byte, err error)

func (*Tracing_Http) MarshalTo

func (m *Tracing_Http) MarshalTo(dAtA []byte) (int, error)

func (*Tracing_Http) ProtoMessage

func (*Tracing_Http) ProtoMessage()

func (*Tracing_Http) Reset

func (m *Tracing_Http) Reset()

func (*Tracing_Http) Size

func (m *Tracing_Http) Size() (n int)

func (*Tracing_Http) String

func (m *Tracing_Http) String() string

func (*Tracing_Http) Unmarshal

func (m *Tracing_Http) Unmarshal(dAtA []byte) error

func (*Tracing_Http) Validate

func (m *Tracing_Http) Validate() error

Validate checks the field values on Tracing_Http with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Tracing_Http) XXX_DiscardUnknown

func (m *Tracing_Http) XXX_DiscardUnknown()

func (*Tracing_Http) XXX_Marshal

func (m *Tracing_Http) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Tracing_Http) XXX_Merge

func (dst *Tracing_Http) XXX_Merge(src proto.Message)

func (*Tracing_Http) XXX_Size

func (m *Tracing_Http) XXX_Size() int

func (*Tracing_Http) XXX_Unmarshal

func (m *Tracing_Http) XXX_Unmarshal(b []byte) error

type Tracing_HttpValidationError

type Tracing_HttpValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

Tracing_HttpValidationError is the validation error returned by Tracing_Http.Validate if the designated constraints aren't met.

func (Tracing_HttpValidationError) Error

Error satisfies the builtin error interface

type ZipkinConfig

type ZipkinConfig struct {
	// 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_config.bootstrap.v2.Bootstrap.StaticResources.clusters>`.
	CollectorCluster string `protobuf:"bytes,1,opt,name=collector_cluster,json=collectorCluster,proto3" json:"collector_cluster,omitempty"`
	// 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.
	CollectorEndpoint string `protobuf:"bytes,2,opt,name=collector_endpoint,json=collectorEndpoint,proto3" json:"collector_endpoint,omitempty"`
	// Determines whether a 128bit trace id will be used when creating a new
	// trace instance. The default value is false, which will result in a 64 bit trace id being used.
	TraceId_128Bit       bool     `protobuf:"varint,3,opt,name=trace_id_128bit,json=traceId128bit,proto3" json:"trace_id_128bit,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ZipkinConfig) Descriptor

func (*ZipkinConfig) Descriptor() ([]byte, []int)

func (*ZipkinConfig) GetCollectorCluster

func (m *ZipkinConfig) GetCollectorCluster() string

func (*ZipkinConfig) GetCollectorEndpoint

func (m *ZipkinConfig) GetCollectorEndpoint() string

func (*ZipkinConfig) GetTraceId_128Bit

func (m *ZipkinConfig) GetTraceId_128Bit() bool

func (*ZipkinConfig) Marshal

func (m *ZipkinConfig) Marshal() (dAtA []byte, err error)

func (*ZipkinConfig) MarshalTo

func (m *ZipkinConfig) MarshalTo(dAtA []byte) (int, error)

func (*ZipkinConfig) ProtoMessage

func (*ZipkinConfig) ProtoMessage()

func (*ZipkinConfig) Reset

func (m *ZipkinConfig) Reset()

func (*ZipkinConfig) Size

func (m *ZipkinConfig) Size() (n int)

func (*ZipkinConfig) String

func (m *ZipkinConfig) String() string

func (*ZipkinConfig) Unmarshal

func (m *ZipkinConfig) Unmarshal(dAtA []byte) error

func (*ZipkinConfig) Validate

func (m *ZipkinConfig) Validate() error

Validate checks the field values on ZipkinConfig with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*ZipkinConfig) XXX_DiscardUnknown

func (m *ZipkinConfig) XXX_DiscardUnknown()

func (*ZipkinConfig) XXX_Marshal

func (m *ZipkinConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ZipkinConfig) XXX_Merge

func (dst *ZipkinConfig) XXX_Merge(src proto.Message)

func (*ZipkinConfig) XXX_Size

func (m *ZipkinConfig) XXX_Size() int

func (*ZipkinConfig) XXX_Unmarshal

func (m *ZipkinConfig) XXX_Unmarshal(b []byte) error

type ZipkinConfigValidationError

type ZipkinConfigValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

ZipkinConfigValidationError is the validation error returned by ZipkinConfig.Validate if the designated constraints aren't met.

func (ZipkinConfigValidationError) Error

Error satisfies the builtin error interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL