Migrating to OpenTelemetry v1.35.0
Version v1.35.0 introduces 1 breaking change. This guide details how to update your code.
Released: 7/11/2025
1
Breaking Changes
2
Migration Steps
5
Affected Symbols
⚠️ Check Your Code
If you use any of these symbols, you need to read this guide:
LogRecordProcessor.emitLogRecordProcessor.on_emitLogging API (log creation methods)BatchSpanProcessorConsoleLogExporter.exportBreaking Changes
●Issue #1
The method `LogRecordProcessor.emit` has been renamed to `on_emit`. Users relying on reflection or direct calls to `emit` must update their code to use `on_emit` instead.
Migration Steps
- 1If you were calling `LogRecordProcessor.emit`, change calls to `LogRecordProcessor.on_emit`.
- 2When creating logs, use the optional `context` argument instead of passing `trace_id`, `span_id`, or `trace_flags` directly. ([#4597], [#4668])
Release Summary
This release stabilizes the Log signal by introducing `event_name` for events and deprecating direct trace context fields in favor of a context object for log initialization. It also includes several fixes and updates to exporters and SDK components.
Need More Details?
View the full release notes and all changes for OpenTelemetry v1.35.0.
View Full Changelog