envoy_extensions_tracers_opencensus_v4alpha

package
v1.14.2-rc.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OpenCensusConfig_TraceContext_name = map[int32]string{
		0: "NONE",
		1: "TRACE_CONTEXT",
		2: "GRPC_TRACE_BIN",
		3: "CLOUD_TRACE_CONTEXT",
		4: "B3",
	}
	OpenCensusConfig_TraceContext_value = map[string]int32{
		"NONE":                0,
		"TRACE_CONTEXT":       1,
		"GRPC_TRACE_BIN":      2,
		"CLOUD_TRACE_CONTEXT": 3,
		"B3":                  4,
	}
)

Enum value maps for OpenCensusConfig_TraceContext.

View Source
var File_envoy_extensions_tracers_opencensus_v4alpha_opencensus_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type OpenCensusConfig

type OpenCensusConfig struct {

	// Configures tracing, e.g. the sampler, max number of annotations, etc.
	TraceConfig *v1.TraceConfig `protobuf:"bytes,1,opt,name=trace_config,json=traceConfig,proto3" json:"trace_config,omitempty"`
	// Enables the stdout exporter if set to true. This is intended for debugging
	// purposes.
	StdoutExporterEnabled bool `` /* 127-byte string literal not displayed */
	// Enables the Stackdriver exporter if set to true. The project_id must also
	// be set.
	StackdriverExporterEnabled bool `` /* 142-byte string literal not displayed */
	// The Cloud project_id to use for Stackdriver tracing.
	StackdriverProjectId string `protobuf:"bytes,4,opt,name=stackdriver_project_id,json=stackdriverProjectId,proto3" json:"stackdriver_project_id,omitempty"`
	// (optional) By default, the Stackdriver exporter will connect to production
	// Stackdriver. If stackdriver_address is non-empty, it will instead connect
	// to this address, which is in the gRPC format:
	// https://github.com/grpc/grpc/blob/master/doc/naming.md
	StackdriverAddress string `protobuf:"bytes,10,opt,name=stackdriver_address,json=stackdriverAddress,proto3" json:"stackdriver_address,omitempty"`
	// (optional) The gRPC server that hosts Stackdriver tracing service. Only
	// Google gRPC is supported. If :ref:`target_uri <envoy_v3_api_field_config.core.v3.GrpcService.GoogleGrpc.target_uri>`
	// is not provided, the default production Stackdriver address will be used.
	StackdriverGrpcService *v4alpha.GrpcService `` /* 130-byte string literal not displayed */
	// Enables the Zipkin exporter if set to true. The url and service name must
	// also be set. This is deprecated, prefer to use Envoy's :ref:`native Zipkin
	// tracer <envoy_v3_api_msg_config.trace.v3.ZipkinConfig>`.
	//
	// Deprecated: Do not use.
	HiddenEnvoyDeprecatedZipkinExporterEnabled bool `` /* 196-byte string literal not displayed */
	// The URL to Zipkin, e.g. "http://127.0.0.1:9411/api/v2/spans". This is
	// deprecated, prefer to use Envoy's :ref:`native Zipkin tracer
	// <envoy_v3_api_msg_config.trace.v3.ZipkinConfig>`.
	//
	// Deprecated: Do not use.
	HiddenEnvoyDeprecatedZipkinUrl string `` /* 157-byte string literal not displayed */
	// Enables the OpenCensus Agent exporter if set to true. The ocagent_address or
	// ocagent_grpc_service must also be set.
	OcagentExporterEnabled bool `` /* 131-byte string literal not displayed */
	// The address of the OpenCensus Agent, if its exporter is enabled, in gRPC
	// format: https://github.com/grpc/grpc/blob/master/doc/naming.md
	// [#comment:TODO: deprecate this field]
	OcagentAddress string `protobuf:"bytes,12,opt,name=ocagent_address,json=ocagentAddress,proto3" json:"ocagent_address,omitempty"`
	// (optional) The gRPC server hosted by the OpenCensus Agent. Only Google gRPC is supported.
	// This is only used if the ocagent_address is left empty.
	OcagentGrpcService *v4alpha.GrpcService `protobuf:"bytes,14,opt,name=ocagent_grpc_service,json=ocagentGrpcService,proto3" json:"ocagent_grpc_service,omitempty"`
	// List of incoming trace context headers we will accept. First one found
	// wins.
	IncomingTraceContext []OpenCensusConfig_TraceContext `` /* 210-byte string literal not displayed */
	// List of outgoing trace context headers we will produce.
	OutgoingTraceContext []OpenCensusConfig_TraceContext `` /* 210-byte string literal not displayed */
	// contains filtered or unexported fields
}

Configuration for the OpenCensus tracer. [#next-free-field: 15] [#extension: envoy.tracers.opencensus]

func (*OpenCensusConfig) Descriptor deprecated

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

Deprecated: Use OpenCensusConfig.ProtoReflect.Descriptor instead.

func (*OpenCensusConfig) GetHiddenEnvoyDeprecatedZipkinExporterEnabled deprecated added in v1.14.0

func (x *OpenCensusConfig) GetHiddenEnvoyDeprecatedZipkinExporterEnabled() bool

Deprecated: Do not use.

func (*OpenCensusConfig) GetHiddenEnvoyDeprecatedZipkinUrl deprecated added in v1.14.0

func (x *OpenCensusConfig) GetHiddenEnvoyDeprecatedZipkinUrl() string

Deprecated: Do not use.

func (*OpenCensusConfig) GetIncomingTraceContext

func (x *OpenCensusConfig) GetIncomingTraceContext() []OpenCensusConfig_TraceContext

func (*OpenCensusConfig) GetOcagentAddress

func (x *OpenCensusConfig) GetOcagentAddress() string

func (*OpenCensusConfig) GetOcagentExporterEnabled

func (x *OpenCensusConfig) GetOcagentExporterEnabled() bool

func (*OpenCensusConfig) GetOcagentGrpcService

func (x *OpenCensusConfig) GetOcagentGrpcService() *v4alpha.GrpcService

func (*OpenCensusConfig) GetOutgoingTraceContext

func (x *OpenCensusConfig) GetOutgoingTraceContext() []OpenCensusConfig_TraceContext

func (*OpenCensusConfig) GetStackdriverAddress

func (x *OpenCensusConfig) GetStackdriverAddress() string

func (*OpenCensusConfig) GetStackdriverExporterEnabled

func (x *OpenCensusConfig) GetStackdriverExporterEnabled() bool

func (*OpenCensusConfig) GetStackdriverGrpcService

func (x *OpenCensusConfig) GetStackdriverGrpcService() *v4alpha.GrpcService

func (*OpenCensusConfig) GetStackdriverProjectId

func (x *OpenCensusConfig) GetStackdriverProjectId() string

func (*OpenCensusConfig) GetStdoutExporterEnabled

func (x *OpenCensusConfig) GetStdoutExporterEnabled() bool

func (*OpenCensusConfig) GetTraceConfig

func (x *OpenCensusConfig) GetTraceConfig() *v1.TraceConfig

func (*OpenCensusConfig) ProtoMessage

func (*OpenCensusConfig) ProtoMessage()

func (*OpenCensusConfig) ProtoReflect

func (x *OpenCensusConfig) ProtoReflect() protoreflect.Message

func (*OpenCensusConfig) Reset

func (x *OpenCensusConfig) Reset()

func (*OpenCensusConfig) String

func (x *OpenCensusConfig) String() string

func (*OpenCensusConfig) Validate

func (m *OpenCensusConfig) Validate() error

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

type OpenCensusConfigValidationError

type OpenCensusConfigValidationError struct {
	// contains filtered or unexported fields
}

OpenCensusConfigValidationError is the validation error returned by OpenCensusConfig.Validate if the designated constraints aren't met.

func (OpenCensusConfigValidationError) Cause

Cause function returns cause value.

func (OpenCensusConfigValidationError) Error

Error satisfies the builtin error interface

func (OpenCensusConfigValidationError) ErrorName

ErrorName returns error name.

func (OpenCensusConfigValidationError) Field

Field function returns field value.

func (OpenCensusConfigValidationError) Key

Key function returns key value.

func (OpenCensusConfigValidationError) Reason

Reason function returns reason value.

type OpenCensusConfig_TraceContext

type OpenCensusConfig_TraceContext int32
const (
	// No-op default, no trace context is utilized.
	OpenCensusConfig_NONE OpenCensusConfig_TraceContext = 0
	// W3C Trace-Context format "traceparent:" header.
	OpenCensusConfig_TRACE_CONTEXT OpenCensusConfig_TraceContext = 1
	// Binary "grpc-trace-bin:" header.
	OpenCensusConfig_GRPC_TRACE_BIN OpenCensusConfig_TraceContext = 2
	// "X-Cloud-Trace-Context:" header.
	OpenCensusConfig_CLOUD_TRACE_CONTEXT OpenCensusConfig_TraceContext = 3
	// X-B3-* headers.
	OpenCensusConfig_B3 OpenCensusConfig_TraceContext = 4
)

func (OpenCensusConfig_TraceContext) Descriptor

func (OpenCensusConfig_TraceContext) Enum

func (OpenCensusConfig_TraceContext) EnumDescriptor deprecated

func (OpenCensusConfig_TraceContext) EnumDescriptor() ([]byte, []int)

Deprecated: Use OpenCensusConfig_TraceContext.Descriptor instead.

func (OpenCensusConfig_TraceContext) Number

func (OpenCensusConfig_TraceContext) String

func (OpenCensusConfig_TraceContext) Type

Jump to

Keyboard shortcuts

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