Skip to content

[receiver/kafka] Remove deprecated legacy topic and encoding#44568

Merged
atoulme merged 3 commits intoopen-telemetry:mainfrom
khushijain21:kafkadep
Nov 27, 2025
Merged

[receiver/kafka] Remove deprecated legacy topic and encoding#44568
atoulme merged 3 commits intoopen-telemetry:mainfrom
khushijain21:kafkadep

Conversation

@khushijain21
Copy link
Contributor

@khushijain21 khushijain21 commented Nov 27, 2025

Description

This PR removes the deprecated topic and encoding config

@khushijain21 khushijain21 changed the title kafkadep [receiver/kafka] Remove deprecated legacy topic and encoding Nov 27, 2025
Copy link
Contributor

@axw axw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@atoulme atoulme merged commit 5cd6c1b into open-telemetry:main Nov 27, 2025
205 checks passed
@github-actions github-actions bot added this to the next release milestone Nov 27, 2025
github-merge-queue bot pushed a commit to jaegertracing/jaeger that referenced this pull request Dec 5, 2025
…tConn and Kafka receiver/exporter (#7694)

## 🛑 Breaking Change

This upgrade of dependencies from OTel Collector introduces a breaking
change in the Kafka exporter and receiver configuration: the `topic` and
`encoding` fields moved under `traces` element
(open-telemetry/opentelemetry-collector-contrib#44568).

Before:

```yaml
exporters:
  kafka:
    brokers:
      - localhost:9092
    topic: ${env:KAFKA_TOPIC:-jaeger-spans}
    encoding: ${env:KAFKA_ENCODING:-otlp_proto}
```

After:
```yaml
exporters:
  kafka:
    brokers:
      - localhost:9092
    traces:
      topic: ${env:KAFKA_TOPIC:-jaeger-spans}
      encoding: ${env:KAFKA_ENCODING:-otlp_proto}
```

## Fix for OTel Collector Upgrade PR #7694 ✅

- [x] Identify the failing build - Segmentation fault in
TestNewServer_TLSConfigError
- [x] Analyze error messages - Nil pointer dereference when calling
Host.GetExtensions()
- [x] Research and apply fix:
  - Added nil checks before calling Host.GetExtensions() in 3 locations
- If Host is nil, pass nil to ToServer/ToClientConn instead of
dereferencing
- [x] Fix Kafka receiver/exporter configuration breaking changes
  - Moved `topic` and `encoding` into signal-specific `traces` section
- Updated both `config-kafka-ingester.yaml` and
`config-kafka-collector.yaml`
- [x] Test the build passes
- [x] Verify the changes are minimal and correct

## Summary

Fixed build failures caused by breaking changes in OTel Collector
v0.141.0:

### 1. ToServer/ToClientConn API Changes
Added nil pointer checks before calling `Host.GetExtensions()` in:
- `cmd/remote-storage/app/server.go` (added import and nil check)
- `cmd/query/app/server.go` (2 locations with nil checks)

### 2. Kafka Receiver/Exporter Configuration Changes
The Kafka receiver v0.141.0 removed deprecated top-level `topic` and
`encoding` fields. Updated configuration files:
- `cmd/jaeger/config-kafka-ingester.yaml` - Moved topic/encoding under
`traces` section
- `cmd/jaeger/config-kafka-collector.yaml` - Moved topic/encoding under
`traces` section

All tests now pass including the previously failing
`TestNewServer_TLSConfigError` and Kafka integration tests. ✅

<!-- START COPILOT CODING AGENT SUFFIX -->



<details>

<summary>Original prompt</summary>

> investigate why this upgrade PR is failing the build/CI:
#7692


</details>



<!-- START COPILOT CODING AGENT TIPS -->
---

💬 We'd love your input! Share your thoughts on Copilot coding agent in
our [2 minute survey](https://gh.io/copilot-coding-agent-survey).

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: yurishkuro <3523016+yurishkuro@users.noreply.github.com>
github-merge-queue bot pushed a commit to jaegertracing/jaeger that referenced this pull request Dec 5, 2025
…tConn and Kafka receiver/exporter (#7694)

## 🛑 Breaking Change

This upgrade of dependencies from OTel Collector introduces a breaking
change in the Kafka exporter and receiver configuration: the `topic` and
`encoding` fields moved under `traces` element
(open-telemetry/opentelemetry-collector-contrib#44568).

Before:

```yaml
exporters:
  kafka:
    brokers:
      - localhost:9092
    topic: ${env:KAFKA_TOPIC:-jaeger-spans}
    encoding: ${env:KAFKA_ENCODING:-otlp_proto}
```

After:
```yaml
exporters:
  kafka:
    brokers:
      - localhost:9092
    traces:
      topic: ${env:KAFKA_TOPIC:-jaeger-spans}
      encoding: ${env:KAFKA_ENCODING:-otlp_proto}
```

## Fix for OTel Collector Upgrade PR #7694 ✅

- [x] Identify the failing build - Segmentation fault in
TestNewServer_TLSConfigError
- [x] Analyze error messages - Nil pointer dereference when calling
Host.GetExtensions()
- [x] Research and apply fix:
  - Added nil checks before calling Host.GetExtensions() in 3 locations
- If Host is nil, pass nil to ToServer/ToClientConn instead of
dereferencing
- [x] Fix Kafka receiver/exporter configuration breaking changes
  - Moved `topic` and `encoding` into signal-specific `traces` section
- Updated both `config-kafka-ingester.yaml` and
`config-kafka-collector.yaml`
- [x] Test the build passes
- [x] Verify the changes are minimal and correct

## Summary

Fixed build failures caused by breaking changes in OTel Collector
v0.141.0:

### 1. ToServer/ToClientConn API Changes
Added nil pointer checks before calling `Host.GetExtensions()` in:
- `cmd/remote-storage/app/server.go` (added import and nil check)
- `cmd/query/app/server.go` (2 locations with nil checks)

### 2. Kafka Receiver/Exporter Configuration Changes
The Kafka receiver v0.141.0 removed deprecated top-level `topic` and
`encoding` fields. Updated configuration files:
- `cmd/jaeger/config-kafka-ingester.yaml` - Moved topic/encoding under
`traces` section
- `cmd/jaeger/config-kafka-collector.yaml` - Moved topic/encoding under
`traces` section

All tests now pass including the previously failing
`TestNewServer_TLSConfigError` and Kafka integration tests. ✅

<!-- START COPILOT CODING AGENT SUFFIX -->



<details>

<summary>Original prompt</summary>

> investigate why this upgrade PR is failing the build/CI:
#7692


</details>



<!-- START COPILOT CODING AGENT TIPS -->
---

💬 We'd love your input! Share your thoughts on Copilot coding agent in
our [2 minute survey](https://gh.io/copilot-coding-agent-survey).

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: yurishkuro <3523016+yurishkuro@users.noreply.github.com>
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.

4 participants