Documentation ¶
Overview ¶
*Copyright (c) 2022, kaydxh * *Permission is hereby granted, free of charge, to any person obtaining a copy *of this software and associated documentation files (the "Software"), to deal *in the Software without restriction, including without limitation the rights *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *copies of the Software, and to permit persons to whom the Software is *furnished to do so, subject to the following conditions: * *The above copyright notice and this permission notice shall be included in all *copies or substantial portions of the Software. * *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE *SOFTWARE.
*Copyright (c) 2022, kaydxh * *Permission is hereby granted, free of charge, to any person obtaining a copy *of this software and associated documentation files (the "Software"), to deal *in the Software without restriction, including without limitation the rights *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *copies of the Software, and to permit persons to whom the Software is *furnished to do so, subject to the following conditions: * *The above copyright notice and this permission notice shall be included in all *copies or substantial portions of the Software. * *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE *SOFTWARE.
*Copyright (c) 2022, kaydxh * *Permission is hereby granted, free of charge, to any person obtaining a copy *of this software and associated documentation files (the "Software"), to deal *in the Software without restriction, including without limitation the rights *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *copies of the Software, and to permit persons to whom the Software is *furnished to do so, subject to the following conditions: * *The above copyright notice and this permission notice shall be included in all *copies or substantial portions of the Software. * *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE *SOFTWARE.
*Copyright (c) 2022, kaydxh * *Permission is hereby granted, free of charge, to any person obtaining a copy *of this software and associated documentation files (the "Software"), to deal *in the Software without restriction, including without limitation the rights *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *copies of the Software, and to permit persons to whom the Software is *furnished to do so, subject to the following conditions: * *The above copyright notice and this permission notice shall be included in all *copies or substantial portions of the Software. * *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE *SOFTWARE.
*Copyright (c) 2022, kaydxh * *Permission is hereby granted, free of charge, to any person obtaining a copy *of this software and associated documentation files (the "Software"), to deal *in the Software without restriction, including without limitation the rights *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *copies of the Software, and to permit persons to whom the Software is *furnished to do so, subject to the following conditions: * *The above copyright notice and this permission notice shall be included in all *copies or substantial portions of the Software. * *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE *SOFTWARE.
*Copyright (c) 2022, kaydxh * *Permission is hereby granted, free of charge, to any person obtaining a copy *of this software and associated documentation files (the "Software"), to deal *in the Software without restriction, including without limitation the rights *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *copies of the Software, and to permit persons to whom the Software is *furnished to do so, subject to the following conditions: * *The above copyright notice and this permission notice shall be included in all *copies or substantial portions of the Software. * *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE *SOFTWARE.
Index ¶
- Variables
- type CompletedConfig
- type Config
- type ConfigOption
- type ConfigOptionFunc
- type EmptyConfigOption
- type EmptyOpenTelemetryOption
- type Monitor
- type Monitor_OpenTelemetry
- func (*Monitor_OpenTelemetry) Descriptor() ([]byte, []int)deprecated
- func (x *Monitor_OpenTelemetry) GetEnabled() bool
- func (x *Monitor_OpenTelemetry) GetMetricCollectDuration() *duration.Duration
- func (x *Monitor_OpenTelemetry) GetOtelLogExporterType() Monitor_OpenTelemetry_OtelLogExporterType
- func (x *Monitor_OpenTelemetry) GetOtelMetricExporter() *Monitor_OpenTelemetry_OtelMetricExporter
- func (x *Monitor_OpenTelemetry) GetOtelMetricExporterType() Monitor_OpenTelemetry_OtelMetricExporterType
- func (x *Monitor_OpenTelemetry) GetOtelTraceExporter() *Monitor_OpenTelemetry_OtelTraceExporter
- func (x *Monitor_OpenTelemetry) GetOtelTraceExporterType() Monitor_OpenTelemetry_OtelTraceExporterType
- func (x *Monitor_OpenTelemetry) GetResource() *Monitor_OpenTelemetry_Resource
- func (*Monitor_OpenTelemetry) ProtoMessage()
- func (x *Monitor_OpenTelemetry) ProtoReflect() protoreflect.Message
- func (x *Monitor_OpenTelemetry) Reset()
- func (x *Monitor_OpenTelemetry) String() string
- type Monitor_OpenTelemetry_OtelLogExporterType
- func (Monitor_OpenTelemetry_OtelLogExporterType) Descriptor() protoreflect.EnumDescriptor
- func (x Monitor_OpenTelemetry_OtelLogExporterType) Enum() *Monitor_OpenTelemetry_OtelLogExporterType
- func (Monitor_OpenTelemetry_OtelLogExporterType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Monitor_OpenTelemetry_OtelLogExporterType) Number() protoreflect.EnumNumber
- func (x Monitor_OpenTelemetry_OtelLogExporterType) String() string
- func (Monitor_OpenTelemetry_OtelLogExporterType) Type() protoreflect.EnumType
- type Monitor_OpenTelemetry_OtelMetricExporter
- func (*Monitor_OpenTelemetry_OtelMetricExporter) Descriptor() ([]byte, []int)deprecated
- func (x *Monitor_OpenTelemetry_OtelMetricExporter) GetPrometheus() *Monitor_OpenTelemetry_OtelMetricExporter_Prometheus
- func (x *Monitor_OpenTelemetry_OtelMetricExporter) GetStdout() *Monitor_OpenTelemetry_OtelMetricExporter_Stdout
- func (*Monitor_OpenTelemetry_OtelMetricExporter) ProtoMessage()
- func (x *Monitor_OpenTelemetry_OtelMetricExporter) ProtoReflect() protoreflect.Message
- func (x *Monitor_OpenTelemetry_OtelMetricExporter) Reset()
- func (x *Monitor_OpenTelemetry_OtelMetricExporter) String() string
- type Monitor_OpenTelemetry_OtelMetricExporterType
- func (Monitor_OpenTelemetry_OtelMetricExporterType) Descriptor() protoreflect.EnumDescriptor
- func (x Monitor_OpenTelemetry_OtelMetricExporterType) Enum() *Monitor_OpenTelemetry_OtelMetricExporterType
- func (Monitor_OpenTelemetry_OtelMetricExporterType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Monitor_OpenTelemetry_OtelMetricExporterType) Number() protoreflect.EnumNumber
- func (x Monitor_OpenTelemetry_OtelMetricExporterType) String() string
- func (Monitor_OpenTelemetry_OtelMetricExporterType) Type() protoreflect.EnumType
- type Monitor_OpenTelemetry_OtelMetricExporter_Prometheus
- func (*Monitor_OpenTelemetry_OtelMetricExporter_Prometheus) Descriptor() ([]byte, []int)deprecated
- func (x *Monitor_OpenTelemetry_OtelMetricExporter_Prometheus) GetUrl() string
- func (*Monitor_OpenTelemetry_OtelMetricExporter_Prometheus) ProtoMessage()
- func (x *Monitor_OpenTelemetry_OtelMetricExporter_Prometheus) ProtoReflect() protoreflect.Message
- func (x *Monitor_OpenTelemetry_OtelMetricExporter_Prometheus) Reset()
- func (x *Monitor_OpenTelemetry_OtelMetricExporter_Prometheus) String() string
- type Monitor_OpenTelemetry_OtelMetricExporter_Stdout
- func (*Monitor_OpenTelemetry_OtelMetricExporter_Stdout) Descriptor() ([]byte, []int)deprecated
- func (x *Monitor_OpenTelemetry_OtelMetricExporter_Stdout) GetPrettyPrint() bool
- func (*Monitor_OpenTelemetry_OtelMetricExporter_Stdout) ProtoMessage()
- func (x *Monitor_OpenTelemetry_OtelMetricExporter_Stdout) ProtoReflect() protoreflect.Message
- func (x *Monitor_OpenTelemetry_OtelMetricExporter_Stdout) Reset()
- func (x *Monitor_OpenTelemetry_OtelMetricExporter_Stdout) String() string
- type Monitor_OpenTelemetry_OtelTraceExporter
- func (*Monitor_OpenTelemetry_OtelTraceExporter) Descriptor() ([]byte, []int)deprecated
- func (x *Monitor_OpenTelemetry_OtelTraceExporter) GetJaeger() *Monitor_OpenTelemetry_OtelTraceExporter_Jaeger
- func (x *Monitor_OpenTelemetry_OtelTraceExporter) GetStdout() *Monitor_OpenTelemetry_OtelTraceExporter_Stdout
- func (*Monitor_OpenTelemetry_OtelTraceExporter) ProtoMessage()
- func (x *Monitor_OpenTelemetry_OtelTraceExporter) ProtoReflect() protoreflect.Message
- func (x *Monitor_OpenTelemetry_OtelTraceExporter) Reset()
- func (x *Monitor_OpenTelemetry_OtelTraceExporter) String() string
- type Monitor_OpenTelemetry_OtelTraceExporterType
- func (Monitor_OpenTelemetry_OtelTraceExporterType) Descriptor() protoreflect.EnumDescriptor
- func (x Monitor_OpenTelemetry_OtelTraceExporterType) Enum() *Monitor_OpenTelemetry_OtelTraceExporterType
- func (Monitor_OpenTelemetry_OtelTraceExporterType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Monitor_OpenTelemetry_OtelTraceExporterType) Number() protoreflect.EnumNumber
- func (x Monitor_OpenTelemetry_OtelTraceExporterType) String() string
- func (Monitor_OpenTelemetry_OtelTraceExporterType) Type() protoreflect.EnumType
- type Monitor_OpenTelemetry_OtelTraceExporter_Jaeger
- func (*Monitor_OpenTelemetry_OtelTraceExporter_Jaeger) Descriptor() ([]byte, []int)deprecated
- func (x *Monitor_OpenTelemetry_OtelTraceExporter_Jaeger) GetUrl() string
- func (*Monitor_OpenTelemetry_OtelTraceExporter_Jaeger) ProtoMessage()
- func (x *Monitor_OpenTelemetry_OtelTraceExporter_Jaeger) ProtoReflect() protoreflect.Message
- func (x *Monitor_OpenTelemetry_OtelTraceExporter_Jaeger) Reset()
- func (x *Monitor_OpenTelemetry_OtelTraceExporter_Jaeger) String() string
- type Monitor_OpenTelemetry_OtelTraceExporter_Stdout
- func (*Monitor_OpenTelemetry_OtelTraceExporter_Stdout) Descriptor() ([]byte, []int)deprecated
- func (x *Monitor_OpenTelemetry_OtelTraceExporter_Stdout) GetPrettyPrint() bool
- func (*Monitor_OpenTelemetry_OtelTraceExporter_Stdout) ProtoMessage()
- func (x *Monitor_OpenTelemetry_OtelTraceExporter_Stdout) ProtoReflect() protoreflect.Message
- func (x *Monitor_OpenTelemetry_OtelTraceExporter_Stdout) Reset()
- func (x *Monitor_OpenTelemetry_OtelTraceExporter_Stdout) String() string
- type Monitor_OpenTelemetry_Resource
- func (*Monitor_OpenTelemetry_Resource) Descriptor() ([]byte, []int)deprecated
- func (x *Monitor_OpenTelemetry_Resource) GetAttrs() map[string]string
- func (x *Monitor_OpenTelemetry_Resource) GetServiceName() string
- func (*Monitor_OpenTelemetry_Resource) ProtoMessage()
- func (x *Monitor_OpenTelemetry_Resource) ProtoReflect() protoreflect.Message
- func (x *Monitor_OpenTelemetry_Resource) Reset()
- func (x *Monitor_OpenTelemetry_Resource) String() string
- type OpenTelemetry
- type OpenTelemetryOption
- func WithMeterPullExporter(pullExporterBuilder metric.PullExporterBuilder) OpenTelemetryOption
- func WithMeterPushExporter(pushExporterBuilder metric.PushExporterBuilder) OpenTelemetryOption
- func WithMetricCollectDuration(period time.Duration) OpenTelemetryOption
- func WithTracerExporter(exporterBuilder tracer.TracerExporterBuilder) OpenTelemetryOption
- type OpenTelemetryOptionFunc
- type OpenTelemetryOptions
Constants ¶
This section is empty.
Variables ¶
var ( Monitor_OpenTelemetry_OtelTraceExporterType_name = map[int32]string{ 0: "trace_none", 1: "trace_stdout", 2: "trace_otlp", 3: "trace_jaeger", 4: "trace_zipkin", } Monitor_OpenTelemetry_OtelTraceExporterType_value = map[string]int32{ "trace_none": 0, "trace_stdout": 1, "trace_otlp": 2, "trace_jaeger": 3, "trace_zipkin": 4, } )
Enum value maps for Monitor_OpenTelemetry_OtelTraceExporterType.
var ( Monitor_OpenTelemetry_OtelMetricExporterType_name = map[int32]string{ 0: "metric_none", 1: "metric_stdout", 2: "metric_otlp", 3: "metric_prometheus", } Monitor_OpenTelemetry_OtelMetricExporterType_value = map[string]int32{ "metric_none": 0, "metric_stdout": 1, "metric_otlp": 2, "metric_prometheus": 3, } )
Enum value maps for Monitor_OpenTelemetry_OtelMetricExporterType.
var ( Monitor_OpenTelemetry_OtelLogExporterType_name = map[int32]string{ 0: "log_none", 1: "log_otlp", } Monitor_OpenTelemetry_OtelLogExporterType_value = map[string]int32{ "log_none": 0, "log_otlp": 1, } )
Enum value maps for Monitor_OpenTelemetry_OtelLogExporterType.
var File_pkg_monitor_opentelemetry_opentelemetry_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CompletedConfig ¶
type CompletedConfig struct {
// contains filtered or unexported fields
}
type Config ¶
type Config struct { Proto Monitor_OpenTelemetry // contains filtered or unexported fields }
func NewConfig ¶
func NewConfig(options ...ConfigOption) *Config
func (*Config) ApplyOptions ¶
func (o *Config) ApplyOptions(options ...ConfigOption) *Config
func (*Config) Complete ¶
func (c *Config) Complete() CompletedConfig
Complete set default ServerRunOptions.
type ConfigOption ¶
type ConfigOption interface {
// contains filtered or unexported methods
}
A ConfigOption sets options.
func WithViper ¶
func WithViper(v *viper.Viper) ConfigOption
type ConfigOptionFunc ¶
type ConfigOptionFunc func(*Config)
ConfigOptionFunc wraps a function that modifies Client into an implementation of the ConfigOption interface.
type EmptyConfigOption ¶
type EmptyConfigOption struct{}
EmptyConfigOption does not alter the configuration. It can be embedded in another structure to build custom options.
This API is EXPERIMENTAL.
type EmptyOpenTelemetryOption ¶
type EmptyOpenTelemetryOption struct{}
EmptyOpenTelemetryOption does not alter the configuration. It can be embedded in another structure to build custom options.
This API is EXPERIMENTAL.
type Monitor ¶
type Monitor struct { OpenTelemetry *Monitor_OpenTelemetry `protobuf:"bytes,3,opt,name=open_telemetry,json=openTelemetry,proto3" json:"open_telemetry,omitempty"` // contains filtered or unexported fields }
func (*Monitor) Descriptor
deprecated
func (*Monitor) GetOpenTelemetry ¶
func (x *Monitor) GetOpenTelemetry() *Monitor_OpenTelemetry
func (*Monitor) ProtoMessage ¶
func (*Monitor) ProtoMessage()
func (*Monitor) ProtoReflect ¶
func (x *Monitor) ProtoReflect() protoreflect.Message
type Monitor_OpenTelemetry ¶
type Monitor_OpenTelemetry struct { Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` MetricCollectDuration *duration.Duration `` /* 126-byte string literal not displayed */ OtelTraceExporterType Monitor_OpenTelemetry_OtelTraceExporterType `` /* 207-byte string literal not displayed */ OtelMetricExporterType Monitor_OpenTelemetry_OtelMetricExporterType `` /* 211-byte string literal not displayed */ OtelLogExporterType Monitor_OpenTelemetry_OtelLogExporterType `` /* 199-byte string literal not displayed */ OtelMetricExporter *Monitor_OpenTelemetry_OtelMetricExporter `protobuf:"bytes,6,opt,name=otel_metric_exporter,json=otelMetricExporter,proto3" json:"otel_metric_exporter,omitempty"` OtelTraceExporter *Monitor_OpenTelemetry_OtelTraceExporter `protobuf:"bytes,7,opt,name=otel_trace_exporter,json=otelTraceExporter,proto3" json:"otel_trace_exporter,omitempty"` Resource *Monitor_OpenTelemetry_Resource `protobuf:"bytes,10,opt,name=resource,proto3" json:"resource,omitempty"` // contains filtered or unexported fields }
func (*Monitor_OpenTelemetry) Descriptor
deprecated
func (*Monitor_OpenTelemetry) Descriptor() ([]byte, []int)
Deprecated: Use Monitor_OpenTelemetry.ProtoReflect.Descriptor instead.
func (*Monitor_OpenTelemetry) GetEnabled ¶
func (x *Monitor_OpenTelemetry) GetEnabled() bool
func (*Monitor_OpenTelemetry) GetMetricCollectDuration ¶
func (x *Monitor_OpenTelemetry) GetMetricCollectDuration() *duration.Duration
func (*Monitor_OpenTelemetry) GetOtelLogExporterType ¶
func (x *Monitor_OpenTelemetry) GetOtelLogExporterType() Monitor_OpenTelemetry_OtelLogExporterType
func (*Monitor_OpenTelemetry) GetOtelMetricExporter ¶
func (x *Monitor_OpenTelemetry) GetOtelMetricExporter() *Monitor_OpenTelemetry_OtelMetricExporter
func (*Monitor_OpenTelemetry) GetOtelMetricExporterType ¶
func (x *Monitor_OpenTelemetry) GetOtelMetricExporterType() Monitor_OpenTelemetry_OtelMetricExporterType
func (*Monitor_OpenTelemetry) GetOtelTraceExporter ¶
func (x *Monitor_OpenTelemetry) GetOtelTraceExporter() *Monitor_OpenTelemetry_OtelTraceExporter
func (*Monitor_OpenTelemetry) GetOtelTraceExporterType ¶
func (x *Monitor_OpenTelemetry) GetOtelTraceExporterType() Monitor_OpenTelemetry_OtelTraceExporterType
func (*Monitor_OpenTelemetry) GetResource ¶
func (x *Monitor_OpenTelemetry) GetResource() *Monitor_OpenTelemetry_Resource
func (*Monitor_OpenTelemetry) ProtoMessage ¶
func (*Monitor_OpenTelemetry) ProtoMessage()
func (*Monitor_OpenTelemetry) ProtoReflect ¶
func (x *Monitor_OpenTelemetry) ProtoReflect() protoreflect.Message
func (*Monitor_OpenTelemetry) Reset ¶
func (x *Monitor_OpenTelemetry) Reset()
func (*Monitor_OpenTelemetry) String ¶
func (x *Monitor_OpenTelemetry) String() string
type Monitor_OpenTelemetry_OtelLogExporterType ¶
type Monitor_OpenTelemetry_OtelLogExporterType int32
const ( Monitor_OpenTelemetry_log_none Monitor_OpenTelemetry_OtelLogExporterType = 0 Monitor_OpenTelemetry_log_otlp Monitor_OpenTelemetry_OtelLogExporterType = 1 )
func (Monitor_OpenTelemetry_OtelLogExporterType) Descriptor ¶
func (Monitor_OpenTelemetry_OtelLogExporterType) Descriptor() protoreflect.EnumDescriptor
func (Monitor_OpenTelemetry_OtelLogExporterType) EnumDescriptor
deprecated
func (Monitor_OpenTelemetry_OtelLogExporterType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Monitor_OpenTelemetry_OtelLogExporterType.Descriptor instead.
func (Monitor_OpenTelemetry_OtelLogExporterType) Number ¶
func (x Monitor_OpenTelemetry_OtelLogExporterType) Number() protoreflect.EnumNumber
func (Monitor_OpenTelemetry_OtelLogExporterType) String ¶
func (x Monitor_OpenTelemetry_OtelLogExporterType) String() string
func (Monitor_OpenTelemetry_OtelLogExporterType) Type ¶
func (Monitor_OpenTelemetry_OtelLogExporterType) Type() protoreflect.EnumType
type Monitor_OpenTelemetry_OtelMetricExporter ¶
type Monitor_OpenTelemetry_OtelMetricExporter struct { Prometheus *Monitor_OpenTelemetry_OtelMetricExporter_Prometheus `protobuf:"bytes,1,opt,name=prometheus,proto3" json:"prometheus,omitempty"` Stdout *Monitor_OpenTelemetry_OtelMetricExporter_Stdout `protobuf:"bytes,2,opt,name=stdout,proto3" json:"stdout,omitempty"` // contains filtered or unexported fields }
func (*Monitor_OpenTelemetry_OtelMetricExporter) Descriptor
deprecated
func (*Monitor_OpenTelemetry_OtelMetricExporter) Descriptor() ([]byte, []int)
Deprecated: Use Monitor_OpenTelemetry_OtelMetricExporter.ProtoReflect.Descriptor instead.
func (*Monitor_OpenTelemetry_OtelMetricExporter) GetPrometheus ¶
func (x *Monitor_OpenTelemetry_OtelMetricExporter) GetPrometheus() *Monitor_OpenTelemetry_OtelMetricExporter_Prometheus
func (*Monitor_OpenTelemetry_OtelMetricExporter) GetStdout ¶
func (x *Monitor_OpenTelemetry_OtelMetricExporter) GetStdout() *Monitor_OpenTelemetry_OtelMetricExporter_Stdout
func (*Monitor_OpenTelemetry_OtelMetricExporter) ProtoMessage ¶
func (*Monitor_OpenTelemetry_OtelMetricExporter) ProtoMessage()
func (*Monitor_OpenTelemetry_OtelMetricExporter) ProtoReflect ¶
func (x *Monitor_OpenTelemetry_OtelMetricExporter) ProtoReflect() protoreflect.Message
func (*Monitor_OpenTelemetry_OtelMetricExporter) Reset ¶
func (x *Monitor_OpenTelemetry_OtelMetricExporter) Reset()
func (*Monitor_OpenTelemetry_OtelMetricExporter) String ¶
func (x *Monitor_OpenTelemetry_OtelMetricExporter) String() string
type Monitor_OpenTelemetry_OtelMetricExporterType ¶
type Monitor_OpenTelemetry_OtelMetricExporterType int32
const ( Monitor_OpenTelemetry_metric_none Monitor_OpenTelemetry_OtelMetricExporterType = 0 Monitor_OpenTelemetry_metric_stdout Monitor_OpenTelemetry_OtelMetricExporterType = 1 Monitor_OpenTelemetry_metric_otlp Monitor_OpenTelemetry_OtelMetricExporterType = 2 Monitor_OpenTelemetry_metric_prometheus Monitor_OpenTelemetry_OtelMetricExporterType = 3 )
func (Monitor_OpenTelemetry_OtelMetricExporterType) Descriptor ¶
func (Monitor_OpenTelemetry_OtelMetricExporterType) Descriptor() protoreflect.EnumDescriptor
func (Monitor_OpenTelemetry_OtelMetricExporterType) EnumDescriptor
deprecated
func (Monitor_OpenTelemetry_OtelMetricExporterType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Monitor_OpenTelemetry_OtelMetricExporterType.Descriptor instead.
func (Monitor_OpenTelemetry_OtelMetricExporterType) Number ¶
func (x Monitor_OpenTelemetry_OtelMetricExporterType) Number() protoreflect.EnumNumber
func (Monitor_OpenTelemetry_OtelMetricExporterType) String ¶
func (x Monitor_OpenTelemetry_OtelMetricExporterType) String() string
func (Monitor_OpenTelemetry_OtelMetricExporterType) Type ¶
func (Monitor_OpenTelemetry_OtelMetricExporterType) Type() protoreflect.EnumType
type Monitor_OpenTelemetry_OtelMetricExporter_Prometheus ¶
type Monitor_OpenTelemetry_OtelMetricExporter_Prometheus struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*Monitor_OpenTelemetry_OtelMetricExporter_Prometheus) Descriptor
deprecated
func (*Monitor_OpenTelemetry_OtelMetricExporter_Prometheus) Descriptor() ([]byte, []int)
Deprecated: Use Monitor_OpenTelemetry_OtelMetricExporter_Prometheus.ProtoReflect.Descriptor instead.
func (*Monitor_OpenTelemetry_OtelMetricExporter_Prometheus) GetUrl ¶
func (x *Monitor_OpenTelemetry_OtelMetricExporter_Prometheus) GetUrl() string
func (*Monitor_OpenTelemetry_OtelMetricExporter_Prometheus) ProtoMessage ¶
func (*Monitor_OpenTelemetry_OtelMetricExporter_Prometheus) ProtoMessage()
func (*Monitor_OpenTelemetry_OtelMetricExporter_Prometheus) ProtoReflect ¶
func (x *Monitor_OpenTelemetry_OtelMetricExporter_Prometheus) ProtoReflect() protoreflect.Message
func (*Monitor_OpenTelemetry_OtelMetricExporter_Prometheus) Reset ¶
func (x *Monitor_OpenTelemetry_OtelMetricExporter_Prometheus) Reset()
func (*Monitor_OpenTelemetry_OtelMetricExporter_Prometheus) String ¶
func (x *Monitor_OpenTelemetry_OtelMetricExporter_Prometheus) String() string
type Monitor_OpenTelemetry_OtelMetricExporter_Stdout ¶
type Monitor_OpenTelemetry_OtelMetricExporter_Stdout struct { PrettyPrint bool `protobuf:"varint,1,opt,name=pretty_print,json=prettyPrint,proto3" json:"pretty_print,omitempty"` // contains filtered or unexported fields }
func (*Monitor_OpenTelemetry_OtelMetricExporter_Stdout) Descriptor
deprecated
func (*Monitor_OpenTelemetry_OtelMetricExporter_Stdout) Descriptor() ([]byte, []int)
Deprecated: Use Monitor_OpenTelemetry_OtelMetricExporter_Stdout.ProtoReflect.Descriptor instead.
func (*Monitor_OpenTelemetry_OtelMetricExporter_Stdout) GetPrettyPrint ¶
func (x *Monitor_OpenTelemetry_OtelMetricExporter_Stdout) GetPrettyPrint() bool
func (*Monitor_OpenTelemetry_OtelMetricExporter_Stdout) ProtoMessage ¶
func (*Monitor_OpenTelemetry_OtelMetricExporter_Stdout) ProtoMessage()
func (*Monitor_OpenTelemetry_OtelMetricExporter_Stdout) ProtoReflect ¶
func (x *Monitor_OpenTelemetry_OtelMetricExporter_Stdout) ProtoReflect() protoreflect.Message
func (*Monitor_OpenTelemetry_OtelMetricExporter_Stdout) Reset ¶
func (x *Monitor_OpenTelemetry_OtelMetricExporter_Stdout) Reset()
func (*Monitor_OpenTelemetry_OtelMetricExporter_Stdout) String ¶
func (x *Monitor_OpenTelemetry_OtelMetricExporter_Stdout) String() string
type Monitor_OpenTelemetry_OtelTraceExporter ¶
type Monitor_OpenTelemetry_OtelTraceExporter struct { Jaeger *Monitor_OpenTelemetry_OtelTraceExporter_Jaeger `protobuf:"bytes,1,opt,name=jaeger,proto3" json:"jaeger,omitempty"` Stdout *Monitor_OpenTelemetry_OtelTraceExporter_Stdout `protobuf:"bytes,2,opt,name=stdout,proto3" json:"stdout,omitempty"` // contains filtered or unexported fields }
func (*Monitor_OpenTelemetry_OtelTraceExporter) Descriptor
deprecated
func (*Monitor_OpenTelemetry_OtelTraceExporter) Descriptor() ([]byte, []int)
Deprecated: Use Monitor_OpenTelemetry_OtelTraceExporter.ProtoReflect.Descriptor instead.
func (*Monitor_OpenTelemetry_OtelTraceExporter) GetJaeger ¶
func (x *Monitor_OpenTelemetry_OtelTraceExporter) GetJaeger() *Monitor_OpenTelemetry_OtelTraceExporter_Jaeger
func (*Monitor_OpenTelemetry_OtelTraceExporter) GetStdout ¶
func (x *Monitor_OpenTelemetry_OtelTraceExporter) GetStdout() *Monitor_OpenTelemetry_OtelTraceExporter_Stdout
func (*Monitor_OpenTelemetry_OtelTraceExporter) ProtoMessage ¶
func (*Monitor_OpenTelemetry_OtelTraceExporter) ProtoMessage()
func (*Monitor_OpenTelemetry_OtelTraceExporter) ProtoReflect ¶
func (x *Monitor_OpenTelemetry_OtelTraceExporter) ProtoReflect() protoreflect.Message
func (*Monitor_OpenTelemetry_OtelTraceExporter) Reset ¶
func (x *Monitor_OpenTelemetry_OtelTraceExporter) Reset()
func (*Monitor_OpenTelemetry_OtelTraceExporter) String ¶
func (x *Monitor_OpenTelemetry_OtelTraceExporter) String() string
type Monitor_OpenTelemetry_OtelTraceExporterType ¶
type Monitor_OpenTelemetry_OtelTraceExporterType int32
const ( Monitor_OpenTelemetry_trace_none Monitor_OpenTelemetry_OtelTraceExporterType = 0 Monitor_OpenTelemetry_trace_stdout Monitor_OpenTelemetry_OtelTraceExporterType = 1 Monitor_OpenTelemetry_trace_otlp Monitor_OpenTelemetry_OtelTraceExporterType = 2 Monitor_OpenTelemetry_trace_jaeger Monitor_OpenTelemetry_OtelTraceExporterType = 3 Monitor_OpenTelemetry_trace_zipkin Monitor_OpenTelemetry_OtelTraceExporterType = 4 )
func (Monitor_OpenTelemetry_OtelTraceExporterType) Descriptor ¶
func (Monitor_OpenTelemetry_OtelTraceExporterType) Descriptor() protoreflect.EnumDescriptor
func (Monitor_OpenTelemetry_OtelTraceExporterType) EnumDescriptor
deprecated
func (Monitor_OpenTelemetry_OtelTraceExporterType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Monitor_OpenTelemetry_OtelTraceExporterType.Descriptor instead.
func (Monitor_OpenTelemetry_OtelTraceExporterType) Number ¶
func (x Monitor_OpenTelemetry_OtelTraceExporterType) Number() protoreflect.EnumNumber
func (Monitor_OpenTelemetry_OtelTraceExporterType) String ¶
func (x Monitor_OpenTelemetry_OtelTraceExporterType) String() string
func (Monitor_OpenTelemetry_OtelTraceExporterType) Type ¶
func (Monitor_OpenTelemetry_OtelTraceExporterType) Type() protoreflect.EnumType
type Monitor_OpenTelemetry_OtelTraceExporter_Jaeger ¶
type Monitor_OpenTelemetry_OtelTraceExporter_Jaeger struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*Monitor_OpenTelemetry_OtelTraceExporter_Jaeger) Descriptor
deprecated
func (*Monitor_OpenTelemetry_OtelTraceExporter_Jaeger) Descriptor() ([]byte, []int)
Deprecated: Use Monitor_OpenTelemetry_OtelTraceExporter_Jaeger.ProtoReflect.Descriptor instead.
func (*Monitor_OpenTelemetry_OtelTraceExporter_Jaeger) GetUrl ¶
func (x *Monitor_OpenTelemetry_OtelTraceExporter_Jaeger) GetUrl() string
func (*Monitor_OpenTelemetry_OtelTraceExporter_Jaeger) ProtoMessage ¶
func (*Monitor_OpenTelemetry_OtelTraceExporter_Jaeger) ProtoMessage()
func (*Monitor_OpenTelemetry_OtelTraceExporter_Jaeger) ProtoReflect ¶
func (x *Monitor_OpenTelemetry_OtelTraceExporter_Jaeger) ProtoReflect() protoreflect.Message
func (*Monitor_OpenTelemetry_OtelTraceExporter_Jaeger) Reset ¶
func (x *Monitor_OpenTelemetry_OtelTraceExporter_Jaeger) Reset()
func (*Monitor_OpenTelemetry_OtelTraceExporter_Jaeger) String ¶
func (x *Monitor_OpenTelemetry_OtelTraceExporter_Jaeger) String() string
type Monitor_OpenTelemetry_OtelTraceExporter_Stdout ¶
type Monitor_OpenTelemetry_OtelTraceExporter_Stdout struct { PrettyPrint bool `protobuf:"varint,1,opt,name=pretty_print,json=prettyPrint,proto3" json:"pretty_print,omitempty"` // contains filtered or unexported fields }
func (*Monitor_OpenTelemetry_OtelTraceExporter_Stdout) Descriptor
deprecated
func (*Monitor_OpenTelemetry_OtelTraceExporter_Stdout) Descriptor() ([]byte, []int)
Deprecated: Use Monitor_OpenTelemetry_OtelTraceExporter_Stdout.ProtoReflect.Descriptor instead.
func (*Monitor_OpenTelemetry_OtelTraceExporter_Stdout) GetPrettyPrint ¶
func (x *Monitor_OpenTelemetry_OtelTraceExporter_Stdout) GetPrettyPrint() bool
func (*Monitor_OpenTelemetry_OtelTraceExporter_Stdout) ProtoMessage ¶
func (*Monitor_OpenTelemetry_OtelTraceExporter_Stdout) ProtoMessage()
func (*Monitor_OpenTelemetry_OtelTraceExporter_Stdout) ProtoReflect ¶
func (x *Monitor_OpenTelemetry_OtelTraceExporter_Stdout) ProtoReflect() protoreflect.Message
func (*Monitor_OpenTelemetry_OtelTraceExporter_Stdout) Reset ¶
func (x *Monitor_OpenTelemetry_OtelTraceExporter_Stdout) Reset()
func (*Monitor_OpenTelemetry_OtelTraceExporter_Stdout) String ¶
func (x *Monitor_OpenTelemetry_OtelTraceExporter_Stdout) String() string
type Monitor_OpenTelemetry_Resource ¶
type Monitor_OpenTelemetry_Resource struct { ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` // default use process name Attrs map[string]string `` /* 151-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Monitor_OpenTelemetry_Resource) Descriptor
deprecated
func (*Monitor_OpenTelemetry_Resource) Descriptor() ([]byte, []int)
Deprecated: Use Monitor_OpenTelemetry_Resource.ProtoReflect.Descriptor instead.
func (*Monitor_OpenTelemetry_Resource) GetAttrs ¶
func (x *Monitor_OpenTelemetry_Resource) GetAttrs() map[string]string
func (*Monitor_OpenTelemetry_Resource) GetServiceName ¶
func (x *Monitor_OpenTelemetry_Resource) GetServiceName() string
func (*Monitor_OpenTelemetry_Resource) ProtoMessage ¶
func (*Monitor_OpenTelemetry_Resource) ProtoMessage()
func (*Monitor_OpenTelemetry_Resource) ProtoReflect ¶
func (x *Monitor_OpenTelemetry_Resource) ProtoReflect() protoreflect.Message
func (*Monitor_OpenTelemetry_Resource) Reset ¶
func (x *Monitor_OpenTelemetry_Resource) Reset()
func (*Monitor_OpenTelemetry_Resource) String ¶
func (x *Monitor_OpenTelemetry_Resource) String() string
type OpenTelemetry ¶
type OpenTelemetry struct {
// contains filtered or unexported fields
}
func NewOpenTelemetry ¶
func NewOpenTelemetry(opts ...OpenTelemetryOption) *OpenTelemetry
func (*OpenTelemetry) ApplyOptions ¶
func (o *OpenTelemetry) ApplyOptions(options ...OpenTelemetryOption) *OpenTelemetry
type OpenTelemetryOption ¶
type OpenTelemetryOption interface {
// contains filtered or unexported methods
}
A OpenTelemetryOption sets options.
func WithMeterPullExporter ¶
func WithMeterPullExporter(pullExporterBuilder metric.PullExporterBuilder) OpenTelemetryOption
func WithMeterPushExporter ¶
func WithMeterPushExporter(pushExporterBuilder metric.PushExporterBuilder) OpenTelemetryOption
func WithMetricCollectDuration ¶
func WithMetricCollectDuration(period time.Duration) OpenTelemetryOption
func WithTracerExporter ¶
func WithTracerExporter(exporterBuilder tracer.TracerExporterBuilder) OpenTelemetryOption
type OpenTelemetryOptionFunc ¶
type OpenTelemetryOptionFunc func(*OpenTelemetry)
OpenTelemetryOptionFunc wraps a function that modifies Client into an implementation of the OpenTelemetryOption interface.
type OpenTelemetryOptions ¶
type OpenTelemetryOptions struct {
// contains filtered or unexported fields
}
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
*Copyright (c) 2022, kaydxh * *Permission is hereby granted, free of charge, to any person obtaining a copy *of this software and associated documentation files (the "Software"), to deal *in the Software without restriction, including without limitation the rights *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *copies of the Software, and to permit persons to whom the Software is *furnished to do so, subject to the following conditions: * *The above copyright notice and this permission notice shall be included in all *copies or substantial portions of the Software.
|
*Copyright (c) 2022, kaydxh * *Permission is hereby granted, free of charge, to any person obtaining a copy *of this software and associated documentation files (the "Software"), to deal *in the Software without restriction, including without limitation the rights *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *copies of the Software, and to permit persons to whom the Software is *furnished to do so, subject to the following conditions: * *The above copyright notice and this permission notice shall be included in all *copies or substantial portions of the Software. |
prometheus
*Copyright (c) 2022, kaydxh * *Permission is hereby granted, free of charge, to any person obtaining a copy *of this software and associated documentation files (the "Software"), to deal *in the Software without restriction, including without limitation the rights *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *copies of the Software, and to permit persons to whom the Software is *furnished to do so, subject to the following conditions: * *The above copyright notice and this permission notice shall be included in all *copies or substantial portions of the Software.
|
*Copyright (c) 2022, kaydxh * *Permission is hereby granted, free of charge, to any person obtaining a copy *of this software and associated documentation files (the "Software"), to deal *in the Software without restriction, including without limitation the rights *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *copies of the Software, and to permit persons to whom the Software is *furnished to do so, subject to the following conditions: * *The above copyright notice and this permission notice shall be included in all *copies or substantial portions of the Software. |
stdout
*Copyright (c) 2022, kaydxh * *Permission is hereby granted, free of charge, to any person obtaining a copy *of this software and associated documentation files (the "Software"), to deal *in the Software without restriction, including without limitation the rights *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *copies of the Software, and to permit persons to whom the Software is *furnished to do so, subject to the following conditions: * *The above copyright notice and this permission notice shall be included in all *copies or substantial portions of the Software.
|
*Copyright (c) 2022, kaydxh * *Permission is hereby granted, free of charge, to any person obtaining a copy *of this software and associated documentation files (the "Software"), to deal *in the Software without restriction, including without limitation the rights *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *copies of the Software, and to permit persons to whom the Software is *furnished to do so, subject to the following conditions: * *The above copyright notice and this permission notice shall be included in all *copies or substantial portions of the Software. |
*Copyright (c) 2022, kaydxh * *Permission is hereby granted, free of charge, to any person obtaining a copy *of this software and associated documentation files (the "Software"), to deal *in the Software without restriction, including without limitation the rights *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *copies of the Software, and to permit persons to whom the Software is *furnished to do so, subject to the following conditions: * *The above copyright notice and this permission notice shall be included in all *copies or substantial portions of the Software.
|
*Copyright (c) 2022, kaydxh * *Permission is hereby granted, free of charge, to any person obtaining a copy *of this software and associated documentation files (the "Software"), to deal *in the Software without restriction, including without limitation the rights *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *copies of the Software, and to permit persons to whom the Software is *furnished to do so, subject to the following conditions: * *The above copyright notice and this permission notice shall be included in all *copies or substantial portions of the Software. |
jaeger
*Copyright (c) 2022, kaydxh * *Permission is hereby granted, free of charge, to any person obtaining a copy *of this software and associated documentation files (the "Software"), to deal *in the Software without restriction, including without limitation the rights *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *copies of the Software, and to permit persons to whom the Software is *furnished to do so, subject to the following conditions: * *The above copyright notice and this permission notice shall be included in all *copies or substantial portions of the Software.
|
*Copyright (c) 2022, kaydxh * *Permission is hereby granted, free of charge, to any person obtaining a copy *of this software and associated documentation files (the "Software"), to deal *in the Software without restriction, including without limitation the rights *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *copies of the Software, and to permit persons to whom the Software is *furnished to do so, subject to the following conditions: * *The above copyright notice and this permission notice shall be included in all *copies or substantial portions of the Software. |
stdout
*Copyright (c) 2022, kaydxh * *Permission is hereby granted, free of charge, to any person obtaining a copy *of this software and associated documentation files (the "Software"), to deal *in the Software without restriction, including without limitation the rights *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *copies of the Software, and to permit persons to whom the Software is *furnished to do so, subject to the following conditions: * *The above copyright notice and this permission notice shall be included in all *copies or substantial portions of the Software.
|
*Copyright (c) 2022, kaydxh * *Permission is hereby granted, free of charge, to any person obtaining a copy *of this software and associated documentation files (the "Software"), to deal *in the Software without restriction, including without limitation the rights *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *copies of the Software, and to permit persons to whom the Software is *furnished to do so, subject to the following conditions: * *The above copyright notice and this permission notice shall be included in all *copies or substantial portions of the Software. |