Documentation ¶
Index ¶
Constants ¶
View Source
const ( OpenTracingSampled = "X-B3-Sampled" OpenTracingSpanId = "X-B3-SpanId" OpenTracingSpanPosition = "X-B3-SpanPosition" OpenTracingTraceId = "X-B3-TraceId" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter string
Adapter 日志适配, 定义日志输出到哪里, 内置支持下列几种类型.
const ( AdapterTerm Adapter = "term" // 1. 在终端打印 AdapterFile Adapter = "file" // 2. 写入到本地文件中 AdapterElastic Adapter = "elastic" // 3. 发送到 Elasticsearch (https://www.elastic.co/cn/elasticsearch) AdapterKafka Adapter = "kafka" // 4. 发送到 Kafka (https://kafka.apache.org/) )
type TimeFormat ¶
type TimeFormat string
TimeFormat 时间格式.
const (
DefaultTimeFormat TimeFormat = "2006-01-02T15:04:05.999999999Z07:00"
)
type Tracer ¶
type Tracer string
Tracer 链路适配, 定义链路追踪数据上报到哪里, 内置支持下列类型.
const ( TracerNone Tracer = "" // 1. 不上报 TracerJaeger Tracer = "jaeger" // 2. 上报到Jaeger (https://www.jaegertracing.io/) TracerZipkin Tracer = "zipkin" // 3. 上报到Zipkin (https://zipkin.io/) )
Click to show internal directories.
Click to hide internal directories.