zipkinmdctx

package
v0.0.0-...-8561cf9 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: MIT Imports: 3 Imported by: 0

README

mdctx Zipkin provider

Providers allows you to include additional context to the logs coming from other sources.

The zipkin provider allows the user to include the traceID and spanID as log fields:

TraceID only

package main

import "github.com/jcchavezs/mdctx/providers/zipkin"

func main() {
	mdctx.RegisterProvider(zipkin.TraceIDProvider)
}

TraceID and SpanID

package main

import "github.com/jcchavezs/mdctx/providers/zipkin"

func main() {
	mdctx.RegisterProvider(zipkin.TraceNSpanIDProvider)
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TraceIDProvider

func TraceIDProvider(ctx context.Context) context.Context

TraceIDProvider allows users to inject zipkin's traceID value into the log record values.

func TraceNSpanIDProvider

func TraceNSpanIDProvider(ctx context.Context) context.Context

TraceNSpanIDProvider allows users to inject zipkin's traceID and spanID value into the log record values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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