A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pkg.go.dev/github.com/open-telemetry/opentelemetry-collector-contrib/exporter/kafkaexporter below:

kafkaexporter package - github.com/open-telemetry/opentelemetry-collector-contrib/exporter/kafkaexporter - Go Packages

Kafka Exporter

Kafka exporter exports logs, metrics, and traces to Kafka. This exporter uses a synchronous producer that blocks and does not batch messages, therefore it should be used with batch and queued retry processors for higher throughput and resiliency. Message payload encoding is configurable.

Configuration settings

[!NOTE] You can opt-in to use franz-go client by enabling the feature gate exporter.kafkaexporter.UseFranzGo when you run the OpenTelemetry Collector. See the following page for more details: Feature Gates

There are no required settings.

The following settings can be optionally configured:

Supported encodings

The Kafka exporter supports encoding extensions, as well as the following built-in encodings.

Available for all signals:

Available only for traces:

Available only for logs:

Example configuration

Example configuration:

exporters:
  kafka:
    brokers:
      - localhost:9092
Destination Topic

The destination topic can be defined in a few different ways and takes priority in the following order:

  1. When <signal>.topic_from_metadata_key is set to use a key from the request metadata, the value of this key is used as the signal specific topic.
  2. Otherwise, if topic_from_attribute is configured, and the corresponding attribute is found on the ingested data, the value of this attribute is used.
  3. If a prior component in the collector pipeline sets the topic on the context via the topic.WithTopic function (from the github.com/open-telemetry/opentelemetry-collector-contrib/pkg/kafka/topic package), the value set in the context is used.
  4. Finally, the <signal>::topic configuration is used for the signal-specific destination topic. If this is not explicitly configured, the topic configuration (deprecated in v0.124.0) is used as a fallback for all signals.

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4