opentelemetry

package
v0.0.131 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 18 Imported by: 1

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

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
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.

View Source
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
}

func (CompletedConfig) New

func (c CompletedConfig) New(ctx context.Context) error

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 WithMemoryCallBack added in v0.0.130

func WithMemoryCallBack(f func(total, free uint64, usage float64)) ConfigOption

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) Descriptor() ([]byte, []int)

Deprecated: Use Monitor.ProtoReflect.Descriptor instead.

func (*Monitor) GetOpenTelemetry

func (x *Monitor) GetOpenTelemetry() *Monitor_OpenTelemetry

func (*Monitor) ProtoMessage

func (*Monitor) ProtoMessage()

func (*Monitor) ProtoReflect

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

func (*Monitor) Reset

func (x *Monitor) Reset()

func (*Monitor) String

func (x *Monitor) String() string

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 (*Monitor_OpenTelemetry) GetOtelMetricExporter

func (*Monitor_OpenTelemetry) GetOtelMetricExporterType

func (*Monitor_OpenTelemetry) GetOtelTraceExporter

func (*Monitor_OpenTelemetry) GetOtelTraceExporterType

func (*Monitor_OpenTelemetry) GetResource

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) Enum

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 (Monitor_OpenTelemetry_OtelLogExporterType) String

func (Monitor_OpenTelemetry_OtelLogExporterType) Type

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 (*Monitor_OpenTelemetry_OtelMetricExporter) GetStdout

func (*Monitor_OpenTelemetry_OtelMetricExporter) ProtoMessage

func (*Monitor_OpenTelemetry_OtelMetricExporter) ProtoReflect

func (*Monitor_OpenTelemetry_OtelMetricExporter) Reset

func (*Monitor_OpenTelemetry_OtelMetricExporter) 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) Enum

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 (Monitor_OpenTelemetry_OtelMetricExporterType) String

func (Monitor_OpenTelemetry_OtelMetricExporterType) Type

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

Deprecated: Use Monitor_OpenTelemetry_OtelMetricExporter_Prometheus.ProtoReflect.Descriptor instead.

func (*Monitor_OpenTelemetry_OtelMetricExporter_Prometheus) GetUrl

func (*Monitor_OpenTelemetry_OtelMetricExporter_Prometheus) ProtoMessage

func (*Monitor_OpenTelemetry_OtelMetricExporter_Prometheus) ProtoReflect

func (*Monitor_OpenTelemetry_OtelMetricExporter_Prometheus) Reset

func (*Monitor_OpenTelemetry_OtelMetricExporter_Prometheus) 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

Deprecated: Use Monitor_OpenTelemetry_OtelMetricExporter_Stdout.ProtoReflect.Descriptor instead.

func (*Monitor_OpenTelemetry_OtelMetricExporter_Stdout) GetPrettyPrint

func (*Monitor_OpenTelemetry_OtelMetricExporter_Stdout) ProtoMessage

func (*Monitor_OpenTelemetry_OtelMetricExporter_Stdout) ProtoReflect

func (*Monitor_OpenTelemetry_OtelMetricExporter_Stdout) Reset

func (*Monitor_OpenTelemetry_OtelMetricExporter_Stdout) 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 (*Monitor_OpenTelemetry_OtelTraceExporter) GetStdout

func (*Monitor_OpenTelemetry_OtelTraceExporter) ProtoMessage

func (*Monitor_OpenTelemetry_OtelTraceExporter) ProtoReflect

func (*Monitor_OpenTelemetry_OtelTraceExporter) Reset

func (*Monitor_OpenTelemetry_OtelTraceExporter) 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) Enum

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 (Monitor_OpenTelemetry_OtelTraceExporterType) String

func (Monitor_OpenTelemetry_OtelTraceExporterType) Type

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

Deprecated: Use Monitor_OpenTelemetry_OtelTraceExporter_Jaeger.ProtoReflect.Descriptor instead.

func (*Monitor_OpenTelemetry_OtelTraceExporter_Jaeger) GetUrl

func (*Monitor_OpenTelemetry_OtelTraceExporter_Jaeger) ProtoMessage

func (*Monitor_OpenTelemetry_OtelTraceExporter_Jaeger) ProtoReflect

func (*Monitor_OpenTelemetry_OtelTraceExporter_Jaeger) Reset

func (*Monitor_OpenTelemetry_OtelTraceExporter_Jaeger) 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

Deprecated: Use Monitor_OpenTelemetry_OtelTraceExporter_Stdout.ProtoReflect.Descriptor instead.

func (*Monitor_OpenTelemetry_OtelTraceExporter_Stdout) GetPrettyPrint

func (*Monitor_OpenTelemetry_OtelTraceExporter_Stdout) ProtoMessage

func (*Monitor_OpenTelemetry_OtelTraceExporter_Stdout) ProtoReflect

func (*Monitor_OpenTelemetry_OtelTraceExporter_Stdout) Reset

func (*Monitor_OpenTelemetry_OtelTraceExporter_Stdout) 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 (*Monitor_OpenTelemetry_Resource) Reset

func (x *Monitor_OpenTelemetry_Resource) Reset()

func (*Monitor_OpenTelemetry_Resource) 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

func (*OpenTelemetry) Install

func (t *OpenTelemetry) Install(ctx context.Context) error

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
}

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.
*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.

Jump to

Keyboard shortcuts

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