Documentation ¶
Index ¶
- Variables
- type OpenCensusConfig
- func (*OpenCensusConfig) Descriptor() ([]byte, []int)deprecated
- func (x *OpenCensusConfig) GetHiddenEnvoyDeprecatedZipkinExporterEnabled() booldeprecated
- func (x *OpenCensusConfig) GetHiddenEnvoyDeprecatedZipkinUrl() stringdeprecated
- func (x *OpenCensusConfig) GetIncomingTraceContext() []OpenCensusConfig_TraceContext
- func (x *OpenCensusConfig) GetOcagentAddress() string
- func (x *OpenCensusConfig) GetOcagentExporterEnabled() bool
- func (x *OpenCensusConfig) GetOcagentGrpcService() *v4alpha.GrpcService
- func (x *OpenCensusConfig) GetOutgoingTraceContext() []OpenCensusConfig_TraceContext
- func (x *OpenCensusConfig) GetStackdriverAddress() string
- func (x *OpenCensusConfig) GetStackdriverExporterEnabled() bool
- func (x *OpenCensusConfig) GetStackdriverGrpcService() *v4alpha.GrpcService
- func (x *OpenCensusConfig) GetStackdriverProjectId() string
- func (x *OpenCensusConfig) GetStdoutExporterEnabled() bool
- func (x *OpenCensusConfig) GetTraceConfig() *v1.TraceConfig
- func (*OpenCensusConfig) ProtoMessage()
- func (x *OpenCensusConfig) ProtoReflect() protoreflect.Message
- func (x *OpenCensusConfig) Reset()
- func (x *OpenCensusConfig) String() string
- func (m *OpenCensusConfig) Validate() error
- type OpenCensusConfigValidationError
- func (e OpenCensusConfigValidationError) Cause() error
- func (e OpenCensusConfigValidationError) Error() string
- func (e OpenCensusConfigValidationError) ErrorName() string
- func (e OpenCensusConfigValidationError) Field() string
- func (e OpenCensusConfigValidationError) Key() bool
- func (e OpenCensusConfigValidationError) Reason() string
- type OpenCensusConfig_TraceContext
- func (OpenCensusConfig_TraceContext) Descriptor() protoreflect.EnumDescriptor
- func (x OpenCensusConfig_TraceContext) Enum() *OpenCensusConfig_TraceContext
- func (OpenCensusConfig_TraceContext) EnumDescriptor() ([]byte, []int)deprecated
- func (x OpenCensusConfig_TraceContext) Number() protoreflect.EnumNumber
- func (x OpenCensusConfig_TraceContext) String() string
- func (OpenCensusConfig_TraceContext) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
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.
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
func (x *OpenCensusConfig) GetHiddenEnvoyDeprecatedZipkinExporterEnabled() bool
Deprecated: Do not use.
func (*OpenCensusConfig) GetHiddenEnvoyDeprecatedZipkinUrl
deprecated
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 ¶
func (e OpenCensusConfigValidationError) Cause() error
Cause function returns cause value.
func (OpenCensusConfigValidationError) Error ¶
func (e OpenCensusConfigValidationError) Error() string
Error satisfies the builtin error interface
func (OpenCensusConfigValidationError) ErrorName ¶
func (e OpenCensusConfigValidationError) ErrorName() string
ErrorName returns error name.
func (OpenCensusConfigValidationError) Field ¶
func (e OpenCensusConfigValidationError) Field() string
Field function returns field value.
func (OpenCensusConfigValidationError) Key ¶
func (e OpenCensusConfigValidationError) Key() bool
Key function returns key value.
func (OpenCensusConfigValidationError) Reason ¶
func (e OpenCensusConfigValidationError) Reason() string
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) Descriptor() protoreflect.EnumDescriptor
func (OpenCensusConfig_TraceContext) Enum ¶
func (x OpenCensusConfig_TraceContext) Enum() *OpenCensusConfig_TraceContext
func (OpenCensusConfig_TraceContext) EnumDescriptor
deprecated
func (OpenCensusConfig_TraceContext) EnumDescriptor() ([]byte, []int)
Deprecated: Use OpenCensusConfig_TraceContext.Descriptor instead.
func (OpenCensusConfig_TraceContext) Number ¶
func (x OpenCensusConfig_TraceContext) Number() protoreflect.EnumNumber
func (OpenCensusConfig_TraceContext) String ¶
func (x OpenCensusConfig_TraceContext) String() string
func (OpenCensusConfig_TraceContext) Type ¶
func (OpenCensusConfig_TraceContext) Type() protoreflect.EnumType