go-control-plane: github.com/envoyproxy/go-control-plane/envoy/extensions/tracers/opencensus/v4alpha Index | Files

package envoy_extensions_tracers_opencensus_v4alpha

import "github.com/envoyproxy/go-control-plane/envoy/extensions/tracers/opencensus/v4alpha"

Index

Package Files

opencensus.pb.go opencensus.pb.validate.go

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

type OpenCensusConfig Uses

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 `protobuf:"varint,2,opt,name=stdout_exporter_enabled,json=stdoutExporterEnabled,proto3" json:"stdout_exporter_enabled,omitempty"`
    // Enables the Stackdriver exporter if set to true. The project_id must also
    // be set.
    StackdriverExporterEnabled bool `protobuf:"varint,3,opt,name=stackdriver_exporter_enabled,json=stackdriverExporterEnabled,proto3" json:"stackdriver_exporter_enabled,omitempty"`
    // 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 `protobuf:"bytes,13,opt,name=stackdriver_grpc_service,json=stackdriverGrpcService,proto3" json:"stackdriver_grpc_service,omitempty"`
    // 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 `protobuf:"varint,5,opt,name=hidden_envoy_deprecated_zipkin_exporter_enabled,json=hiddenEnvoyDeprecatedZipkinExporterEnabled,proto3" json:"hidden_envoy_deprecated_zipkin_exporter_enabled,omitempty"`
    // 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 `protobuf:"bytes,6,opt,name=hidden_envoy_deprecated_zipkin_url,json=hiddenEnvoyDeprecatedZipkinUrl,proto3" json:"hidden_envoy_deprecated_zipkin_url,omitempty"`
    // Enables the OpenCensus Agent exporter if set to true. The ocagent_address or
    // ocagent_grpc_service must also be set.
    OcagentExporterEnabled bool `protobuf:"varint,11,opt,name=ocagent_exporter_enabled,json=ocagentExporterEnabled,proto3" json:"ocagent_exporter_enabled,omitempty"`
    // 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 `protobuf:"varint,8,rep,packed,name=incoming_trace_context,json=incomingTraceContext,proto3,enum=envoy.extensions.tracers.opencensus.v4alpha.OpenCensusConfig_TraceContext" json:"incoming_trace_context,omitempty"`
    // List of outgoing trace context headers we will produce.
    OutgoingTraceContext []OpenCensusConfig_TraceContext `protobuf:"varint,9,rep,packed,name=outgoing_trace_context,json=outgoingTraceContext,proto3,enum=envoy.extensions.tracers.opencensus.v4alpha.OpenCensusConfig_TraceContext" json:"outgoing_trace_context,omitempty"`
    // contains filtered or unexported fields
}

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

func (*OpenCensusConfig) Descriptor Uses

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

Deprecated: Use OpenCensusConfig.ProtoReflect.Descriptor instead.

func (*OpenCensusConfig) GetHiddenEnvoyDeprecatedZipkinExporterEnabled Uses

func (x *OpenCensusConfig) GetHiddenEnvoyDeprecatedZipkinExporterEnabled() bool

Deprecated: Do not use.

func (*OpenCensusConfig) GetHiddenEnvoyDeprecatedZipkinUrl Uses

func (x *OpenCensusConfig) GetHiddenEnvoyDeprecatedZipkinUrl() string

Deprecated: Do not use.

func (*OpenCensusConfig) GetIncomingTraceContext Uses

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

func (*OpenCensusConfig) GetOcagentAddress Uses

func (x *OpenCensusConfig) GetOcagentAddress() string

func (*OpenCensusConfig) GetOcagentExporterEnabled Uses

func (x *OpenCensusConfig) GetOcagentExporterEnabled() bool

func (*OpenCensusConfig) GetOcagentGrpcService Uses

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

func (*OpenCensusConfig) GetOutgoingTraceContext Uses

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

func (*OpenCensusConfig) GetStackdriverAddress Uses

func (x *OpenCensusConfig) GetStackdriverAddress() string

func (*OpenCensusConfig) GetStackdriverExporterEnabled Uses

func (x *OpenCensusConfig) GetStackdriverExporterEnabled() bool

func (*OpenCensusConfig) GetStackdriverGrpcService Uses

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

func (*OpenCensusConfig) GetStackdriverProjectId Uses

func (x *OpenCensusConfig) GetStackdriverProjectId() string

func (*OpenCensusConfig) GetStdoutExporterEnabled Uses

func (x *OpenCensusConfig) GetStdoutExporterEnabled() bool

func (*OpenCensusConfig) GetTraceConfig Uses

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

func (*OpenCensusConfig) ProtoMessage Uses

func (*OpenCensusConfig) ProtoMessage()

func (*OpenCensusConfig) ProtoReflect Uses

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

func (*OpenCensusConfig) Reset Uses

func (x *OpenCensusConfig) Reset()

func (*OpenCensusConfig) String Uses

func (x *OpenCensusConfig) String() string

func (*OpenCensusConfig) Validate Uses

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 Uses

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 Uses

func (e OpenCensusConfigValidationError) Cause() error

Cause function returns cause value.

func (OpenCensusConfigValidationError) Error Uses

func (e OpenCensusConfigValidationError) Error() string

Error satisfies the builtin error interface

func (OpenCensusConfigValidationError) ErrorName Uses

func (e OpenCensusConfigValidationError) ErrorName() string

ErrorName returns error name.

func (OpenCensusConfigValidationError) Field Uses

func (e OpenCensusConfigValidationError) Field() string

Field function returns field value.

func (OpenCensusConfigValidationError) Key Uses

func (e OpenCensusConfigValidationError) Key() bool

Key function returns key value.

func (OpenCensusConfigValidationError) Reason Uses

func (e OpenCensusConfigValidationError) Reason() string

Reason function returns reason value.

type OpenCensusConfig_TraceContext Uses

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 Uses

func (OpenCensusConfig_TraceContext) Descriptor() protoreflect.EnumDescriptor

func (OpenCensusConfig_TraceContext) Enum Uses

func (x OpenCensusConfig_TraceContext) Enum() *OpenCensusConfig_TraceContext

func (OpenCensusConfig_TraceContext) EnumDescriptor Uses

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

Deprecated: Use OpenCensusConfig_TraceContext.Descriptor instead.

func (OpenCensusConfig_TraceContext) Number Uses

func (x OpenCensusConfig_TraceContext) Number() protoreflect.EnumNumber

func (OpenCensusConfig_TraceContext) String Uses

func (x OpenCensusConfig_TraceContext) String() string

func (OpenCensusConfig_TraceContext) Type Uses

func (OpenCensusConfig_TraceContext) Type() protoreflect.EnumType

Package envoy_extensions_tracers_opencensus_v4alpha imports 20 packages (graph) and is imported by 6 packages. Updated 2021-01-08. Refresh now. Tools for package owners.