Change8

Migrating to OpenTelemetry Python 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.export

Breaking 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

  1. 1
    If you were calling `LogRecordProcessor.emit`, change calls to `LogRecordProcessor.on_emit`.
  2. 2
    When creating logs, migrate from passing explicit `trace_id`, `span_id`, and `trace_flags` arguments to passing an optional `context` object. ([#4597], [#4668])

Release Summary

This release stabilizes the Log signal with several breaking changes and deprecations, including renaming `LogRecordProcessor.emit` to `on_emit` and deprecating explicit trace context arguments in favor of a context object for logging. It also updates OTLP exporters with improved timeout handling and jitter.

Need More Details?

View the full release notes and all changes for OpenTelemetry Python v1.35.0.

View Full Changelog