tracing

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Overview

Package tracing provides helpers and bindings for distributed tracing of Apache Kafka consumers and producers.

As your infrastructure grows, it becomes important to be able to trace a request, as it travels through multiple services and back to the user. Package tracing provides endpoints and transport helpers and middlewares to capture and emit request-scoped information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextToTags

func ContextToTags(ctx context.Context) map[string]interface{}

ContextToTags returns new map of tags from ctx.

func MessageToContext

func MessageToContext(ctx context.Context, msg *kafka.Message) context.Context

MessageToContext returns new context with topic, partition and offset values from msg.

Types

type KafkaContextKey added in v1.1.0

type KafkaContextKey string
const (
	KeyTopic     KafkaContextKey = "kafka.topic"
	KeyPartition KafkaContextKey = "kafka.partition"
	KeyOffset    KafkaContextKey = "kafka.offset"
)

Directories

Path Synopsis
Package opentracing provides Go kit integration in term of transport layer for Apache Kafka to the OpenTracing project.
Package opentracing provides Go kit integration in term of transport layer for Apache Kafka to the OpenTracing project.

Jump to

Keyboard shortcuts

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