Skip to content

exporter/kafkaexporter: add signal-specific config #39204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

axw
Copy link
Contributor

@axw axw commented Apr 7, 2025

Description

Deprecate topic and encoding, and introduce signal-specific equivalents:

  • logs::topic, metrics::topic, and traces::topic
  • logs::encoding, metrics::encoding, and traces::encoding

This enables users to explicitly define a configuration equivalent to the default configuration, or some variation thereof. It also enables specifying different encodings for each signal type, which may be important due to the fact that some encodings only support a subset of signals.

Link to tracking issue

Fixes #35432

Testing

Unit tests added.

Documentation

Updated README.

Deprecate `topic` and `encoding`, and introduce
signal-specific equivalents:
- `logs::topic`, `metrics::topic`, and `traces::topic`
- `logs::encoding`, `metrics::encoding`, and `traces::encoding`

This enables users to explicitly define a configuration
equivalent to the default configuration, or some variation
thereof. It also enables specifying different encodings for
each signal type, which may be important due to the fact that
some encodings only support a subset of signals.

Closes
open-telemetry#35432
@axw axw force-pushed the kafkaexporter-topicencodingconfig branch from 1f9cdba to 6efe1fc Compare April 7, 2025 08:49
@axw axw marked this pull request as ready for review April 7, 2025 09:30
@axw axw requested a review from a team as a code owner April 7, 2025 09:30
@MovieStoreGuy MovieStoreGuy merged commit 1be66b3 into open-telemetry:main Apr 9, 2025
171 checks passed
@github-actions github-actions bot added this to the next release milestone Apr 9, 2025
LucianoGiannotti pushed a commit to LucianoGiannotti/opentelemetry-collector-contrib that referenced this pull request Apr 9, 2025
)

#### Description

Deprecate `topic` and `encoding`, and introduce signal-specific
equivalents:

- `logs::topic`, `metrics::topic`, and `traces::topic`
- `logs::encoding`, `metrics::encoding`, and `traces::encoding`

This enables users to explicitly define a configuration equivalent to
the default configuration, or some variation thereof. It also enables
specifying different encodings for each signal type, which may be
important due to the fact that some encodings only support a subset of
signals.

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue

Fixes
open-telemetry#35432

#### Testing

Unit tests added.

#### Documentation

Updated README.

---------

Co-authored-by: Antoine Toulme <[email protected]>
Fiery-Fenix pushed a commit to Fiery-Fenix/opentelemetry-collector-contrib that referenced this pull request Apr 24, 2025
)

#### Description

Deprecate `topic` and `encoding`, and introduce signal-specific
equivalents:

- `logs::topic`, `metrics::topic`, and `traces::topic`
- `logs::encoding`, `metrics::encoding`, and `traces::encoding`

This enables users to explicitly define a configuration equivalent to
the default configuration, or some variation thereof. It also enables
specifying different encodings for each signal type, which may be
important due to the fact that some encodings only support a subset of
signals.

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue

Fixes
open-telemetry#35432

#### Testing

Unit tests added.

#### Documentation

Updated README.

---------

Co-authored-by: Antoine Toulme <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[exporter/kafka] Replace "topic" setting by "traces_topic", "logs_topic" and "metrics_topic"
4 participants