Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions kafka/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ import (
type SASLMechanism = sasl.Mechanism

// TopicLogFieldFunc is a function that returns a zap.Field for a given topic.
//
// Deprecated: use TopicLogFieldsFunc instead.
type TopicLogFieldFunc func(topic string) zap.Field

Expand Down Expand Up @@ -158,6 +159,7 @@ type CommonConfig struct {
// topic for these metrics:
// - producer.messages.count
// - consumer.messages.fetched
//
// Deprecated: Use TopicAttributesFunc instead.
TopicAttributeFunc TopicAttributeFunc

Expand All @@ -169,6 +171,7 @@ type CommonConfig struct {

// TopicAttributeFunc can be used to create one custom dimension from a Kafka
// topic for log messages.
//
// Deprecated: use TopicLogFieldsFunc instead.
TopicLogFieldFunc TopicLogFieldFunc

Expand Down