tracing

package
v1.5.25 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListenerTracingSettings

type ListenerTracingSettings struct {
	// Optional. If specified, Envoy will include the headers and header values for any matching request headers.
	RequestHeadersForTags []string `` /* 128-byte string literal not displayed */
	// Optional. If true, Envoy will include logs for streaming events. Default: false.
	Verbose bool `protobuf:"varint,2,opt,name=verbose,proto3" json:"verbose,omitempty"`
	// Requests can produce traces by random sampling or when the `x-client-trace-id` header is provided.
	// TracePercentages defines the limits for random, forced, and overall tracing percentages.
	TracePercentages *TracePercentages `protobuf:"bytes,3,opt,name=trace_percentages,json=tracePercentages,proto3" json:"trace_percentages,omitempty"`
	// Optional. If specified, Envoy will include the environment variables with the given tag as tracing tags.
	EnvironmentVariablesForTags []*TracingTagEnvironmentVariable `` /* 146-byte string literal not displayed */
	// Optional. If specified, Envoy will include the literals with the given tag as tracing tags.
	LiteralsForTags      []*TracingTagLiteral `protobuf:"bytes,7,rep,name=literals_for_tags,json=literalsForTags,proto3" json:"literals_for_tags,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Contains settings for configuring Envoy's tracing capabilities at the listener level. See here for additional information on Envoy's tracing capabilities: https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/observability/tracing.html See here for additional information about configuring tracing with Gloo: https://gloo.solo.io/user_guides/setup_options/observability/#tracing

func (*ListenerTracingSettings) Descriptor

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

func (*ListenerTracingSettings) Equal

func (this *ListenerTracingSettings) Equal(that interface{}) bool

func (*ListenerTracingSettings) GetEnvironmentVariablesForTags added in v1.5.21

func (m *ListenerTracingSettings) GetEnvironmentVariablesForTags() []*TracingTagEnvironmentVariable

func (*ListenerTracingSettings) GetLiteralsForTags added in v1.5.21

func (m *ListenerTracingSettings) GetLiteralsForTags() []*TracingTagLiteral

func (*ListenerTracingSettings) GetRequestHeadersForTags

func (m *ListenerTracingSettings) GetRequestHeadersForTags() []string

func (*ListenerTracingSettings) GetTracePercentages

func (m *ListenerTracingSettings) GetTracePercentages() *TracePercentages

func (*ListenerTracingSettings) GetVerbose

func (m *ListenerTracingSettings) GetVerbose() bool

func (*ListenerTracingSettings) Hash added in v1.2.13

func (m *ListenerTracingSettings) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*ListenerTracingSettings) ProtoMessage

func (*ListenerTracingSettings) ProtoMessage()

func (*ListenerTracingSettings) Reset

func (m *ListenerTracingSettings) Reset()

func (*ListenerTracingSettings) String

func (m *ListenerTracingSettings) String() string

func (*ListenerTracingSettings) XXX_DiscardUnknown

func (m *ListenerTracingSettings) XXX_DiscardUnknown()

func (*ListenerTracingSettings) XXX_Marshal

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

func (*ListenerTracingSettings) XXX_Merge

func (m *ListenerTracingSettings) XXX_Merge(src proto.Message)

func (*ListenerTracingSettings) XXX_Size

func (m *ListenerTracingSettings) XXX_Size() int

func (*ListenerTracingSettings) XXX_Unmarshal

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

type RouteTracingSettings

type RouteTracingSettings struct {
	// Optional. If set, will be used to identify the route that produced the trace.
	// Note that this value will be overridden if the "x-envoy-decorator-operation" header is passed.
	RouteDescriptor string `protobuf:"bytes,1,opt,name=route_descriptor,json=routeDescriptor,proto3" json:"route_descriptor,omitempty"`
	// Requests can produce traces by random sampling or when the `x-client-trace-id` header is provided.
	// TracePercentages defines the limits for random, forced, and overall tracing percentages.
	TracePercentages *TracePercentages `protobuf:"bytes,2,opt,name=trace_percentages,json=tracePercentages,proto3" json:"trace_percentages,omitempty"`
	// Optional. Default is true, If set to false, the tracing headers will not propagate to the upstream.
	Propagate            *types.BoolValue `protobuf:"bytes,3,opt,name=propagate,proto3" json:"propagate,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

Contains settings for configuring Envoy's tracing capabilities at the route level. Note: must also specify ListenerTracingSettings for the associated listener. See here for additional information on Envoy's tracing capabilities: https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/observability/tracing.html See here for additional information about configuring tracing with Gloo: https://gloo.solo.io/user_guides/setup_options/observability/#tracing

func (*RouteTracingSettings) Descriptor

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

func (*RouteTracingSettings) Equal

func (this *RouteTracingSettings) Equal(that interface{}) bool

func (*RouteTracingSettings) GetPropagate added in v1.5.13

func (m *RouteTracingSettings) GetPropagate() *types.BoolValue

func (*RouteTracingSettings) GetRouteDescriptor

func (m *RouteTracingSettings) GetRouteDescriptor() string

func (*RouteTracingSettings) GetTracePercentages

func (m *RouteTracingSettings) GetTracePercentages() *TracePercentages

func (*RouteTracingSettings) Hash added in v1.2.13

func (m *RouteTracingSettings) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*RouteTracingSettings) ProtoMessage

func (*RouteTracingSettings) ProtoMessage()

func (*RouteTracingSettings) Reset

func (m *RouteTracingSettings) Reset()

func (*RouteTracingSettings) String

func (m *RouteTracingSettings) String() string

func (*RouteTracingSettings) XXX_DiscardUnknown

func (m *RouteTracingSettings) XXX_DiscardUnknown()

func (*RouteTracingSettings) XXX_Marshal

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

func (*RouteTracingSettings) XXX_Merge

func (m *RouteTracingSettings) XXX_Merge(src proto.Message)

func (*RouteTracingSettings) XXX_Size

func (m *RouteTracingSettings) XXX_Size() int

func (*RouteTracingSettings) XXX_Unmarshal

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

type TracePercentages

type TracePercentages struct {
	// Percentage of requests that should produce traces when the `x-client-trace-id` header is provided.
	// optional, defaults to 100.0
	// This should be a value between 0.0 and 100.0, with up to 6 significant digits.
	ClientSamplePercentage *types.FloatValue `` /* 129-byte string literal not displayed */
	// Percentage of requests that should produce traces by random sampling.
	// optional, defaults to 100.0
	// This should be a value between 0.0 and 100.0, with up to 6 significant digits.
	RandomSamplePercentage *types.FloatValue `` /* 129-byte string literal not displayed */
	// Overall percentage of requests that should produce traces.
	// optional, defaults to 100.0
	// This should be a value between 0.0 and 100.0, with up to 6 significant digits.
	OverallSamplePercentage *types.FloatValue `` /* 132-byte string literal not displayed */
	XXX_NoUnkeyedLiteral    struct{}          `json:"-"`
	XXX_unrecognized        []byte            `json:"-"`
	XXX_sizecache           int32             `json:"-"`
}

Requests can produce traces by random sampling or when the `x-client-trace-id` header is provided. TracePercentages defines the limits for random, forced, and overall tracing percentages.

func (*TracePercentages) Descriptor

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

func (*TracePercentages) Equal

func (this *TracePercentages) Equal(that interface{}) bool

func (*TracePercentages) GetClientSamplePercentage

func (m *TracePercentages) GetClientSamplePercentage() *types.FloatValue

func (*TracePercentages) GetOverallSamplePercentage

func (m *TracePercentages) GetOverallSamplePercentage() *types.FloatValue

func (*TracePercentages) GetRandomSamplePercentage

func (m *TracePercentages) GetRandomSamplePercentage() *types.FloatValue

func (*TracePercentages) Hash added in v1.2.13

func (m *TracePercentages) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*TracePercentages) ProtoMessage

func (*TracePercentages) ProtoMessage()

func (*TracePercentages) Reset

func (m *TracePercentages) Reset()

func (*TracePercentages) String

func (m *TracePercentages) String() string

func (*TracePercentages) XXX_DiscardUnknown

func (m *TracePercentages) XXX_DiscardUnknown()

func (*TracePercentages) XXX_Marshal

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

func (*TracePercentages) XXX_Merge

func (m *TracePercentages) XXX_Merge(src proto.Message)

func (*TracePercentages) XXX_Size

func (m *TracePercentages) XXX_Size() int

func (*TracePercentages) XXX_Unmarshal

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

type TracingTagEnvironmentVariable added in v1.5.21

type TracingTagEnvironmentVariable struct {
	// Used to populate the tag name.
	Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
	// Environment variable name to obtain the value to populate the tag value.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// When the environment variable is not found, the tag value will be populated with this default value if specified,
	// otherwise no tag will be populated.
	DefaultValue         string   `protobuf:"bytes,3,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Requests can produce traces with custom tags. TracingTagEnvironmentVariable defines an environment variable which gets added as custom tag.

func (*TracingTagEnvironmentVariable) Descriptor added in v1.5.21

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

func (*TracingTagEnvironmentVariable) Equal added in v1.5.21

func (this *TracingTagEnvironmentVariable) Equal(that interface{}) bool

func (*TracingTagEnvironmentVariable) GetDefaultValue added in v1.5.21

func (m *TracingTagEnvironmentVariable) GetDefaultValue() string

func (*TracingTagEnvironmentVariable) GetName added in v1.5.21

func (*TracingTagEnvironmentVariable) GetTag added in v1.5.21

func (*TracingTagEnvironmentVariable) Hash added in v1.5.21

Hash function

func (*TracingTagEnvironmentVariable) ProtoMessage added in v1.5.21

func (*TracingTagEnvironmentVariable) ProtoMessage()

func (*TracingTagEnvironmentVariable) Reset added in v1.5.21

func (m *TracingTagEnvironmentVariable) Reset()

func (*TracingTagEnvironmentVariable) String added in v1.5.21

func (*TracingTagEnvironmentVariable) XXX_DiscardUnknown added in v1.5.21

func (m *TracingTagEnvironmentVariable) XXX_DiscardUnknown()

func (*TracingTagEnvironmentVariable) XXX_Marshal added in v1.5.21

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

func (*TracingTagEnvironmentVariable) XXX_Merge added in v1.5.21

func (m *TracingTagEnvironmentVariable) XXX_Merge(src proto.Message)

func (*TracingTagEnvironmentVariable) XXX_Size added in v1.5.21

func (m *TracingTagEnvironmentVariable) XXX_Size() int

func (*TracingTagEnvironmentVariable) XXX_Unmarshal added in v1.5.21

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

type TracingTagLiteral added in v1.5.21

type TracingTagLiteral struct {
	// Used to populate the tag name.
	Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
	// Static literal value to populate the tag value.
	Value                string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Requests can produce traces with custom tags. TracingTagLiteral defines a literal which gets added as custom tag.

func (*TracingTagLiteral) Descriptor added in v1.5.21

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

func (*TracingTagLiteral) Equal added in v1.5.21

func (this *TracingTagLiteral) Equal(that interface{}) bool

func (*TracingTagLiteral) GetTag added in v1.5.21

func (m *TracingTagLiteral) GetTag() string

func (*TracingTagLiteral) GetValue added in v1.5.21

func (m *TracingTagLiteral) GetValue() string

func (*TracingTagLiteral) Hash added in v1.5.21

func (m *TracingTagLiteral) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*TracingTagLiteral) ProtoMessage added in v1.5.21

func (*TracingTagLiteral) ProtoMessage()

func (*TracingTagLiteral) Reset added in v1.5.21

func (m *TracingTagLiteral) Reset()

func (*TracingTagLiteral) String added in v1.5.21

func (m *TracingTagLiteral) String() string

func (*TracingTagLiteral) XXX_DiscardUnknown added in v1.5.21

func (m *TracingTagLiteral) XXX_DiscardUnknown()

func (*TracingTagLiteral) XXX_Marshal added in v1.5.21

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

func (*TracingTagLiteral) XXX_Merge added in v1.5.21

func (m *TracingTagLiteral) XXX_Merge(src proto.Message)

func (*TracingTagLiteral) XXX_Size added in v1.5.21

func (m *TracingTagLiteral) XXX_Size() int

func (*TracingTagLiteral) XXX_Unmarshal added in v1.5.21

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

Jump to

Keyboard shortcuts

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