com_opentelemetry

package
v0.0.0-...-c6bda96 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(opentelemetry *Opentelemetry) (cancel func(), err error)

Types

type Collector

type Collector int

Collector 没有默认值,必须指定

const (
	// OtlpGrpc accept OpenTelemetry Protocol (OTLP) over gRPC
	// localhost:4317
	// internal.span.format=proto
	OtlpGrpc Collector = iota + 1

	// OtlpHttp accept OpenTelemetry Protocol (OTLP) over HTTP
	// localhost:4318
	// internal.span.format=proto
	OtlpHttp

	// Jaeger accept jaeger.thrift directly from clients
	// http://localhost:14268/api/traces
	// internal.span.format=jaeger
	Jaeger

	// Stdout Create stdout exporter to be able to retrieve
	// 开发,测试
	Stdout
)

type Opentelemetry

type Opentelemetry struct {
	Service     string // 服务名称
	Environment string // 环境

	// 收集枚举类
	Collector Collector
	URI       string // 收集枚举类对应的URI
}

Jump to

Keyboard shortcuts

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