Skip to content

Conversation

@alexmojaki
Copy link
Contributor

No description provided.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Oct 20, 2025

Deploying logfire-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 57749a1
Status: ✅  Deploy successful!
Preview URL: https://1f80a913.logfire-docs.pages.dev
Branch Preview URL: https://alex-up983475.logfire-docs.pages.dev

View logs

@alexmojaki alexmojaki requested a review from Copilot October 20, 2025 14:55
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates OpenTelemetry dependencies from version 1.38.0 to 1.39.0 and adapts code to accommodate breaking API changes in the OTel SDK. The main changes involve migrating from the deprecated Event/EventLogger API to the newer LogRecord/Logger API for Google GenAI instrumentation.

Key Changes

  • Updated OpenTelemetry SDK dependency upper bounds to 1.39.0
  • Migrated Google GenAI instrumentation from deprecated Event API to LogRecord API
  • Enhanced langchain message transformation to handle different tool call formats
  • Added type ignore comments for compatibility with new API signatures

Reviewed Changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
pyproject.toml Updated OpenTelemetry dependencies to support version 1.39.0 and added version constraint for google-genai instrumentation
logfire/_internal/integrations/google_genai.py Migrated from deprecated Event/EventLogger API to LogRecord/Logger API
logfire/_internal/exporters/processor_wrapper.py Enhanced langchain message transformation to handle additional tool call formats
logfire/_internal/logs.py Added type ignore comment for emit method signature
tests/test_pydantic_plugin.py Added type ignore comment for SQLModel field definition
tests/otel_integrations/test_langchain.py Updated test to use create_agent instead of create_react_agent and adjusted expected span names
.github/workflows/daily_deps_test.yml Added test configuration for OTel version 1.37

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@alexmojaki alexmojaki changed the title Update deps Support OpenTelemetry 1.38, fix instrument_google_genai and instrument_langchain Oct 20, 2025
@alexmojaki alexmojaki enabled auto-merge (squash) October 20, 2025 14:58
@alexmojaki alexmojaki merged commit 172122c into main Oct 20, 2025
15 checks passed
@alexmojaki alexmojaki deleted the alex/up983475 branch October 20, 2025 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants