Skip to content

Conversation

wrisa
Copy link
Contributor

@wrisa wrisa commented Oct 20, 2025

Description

Removed telemetry creation in langchain's llm callbacks and added genai utils handler.
This PR3768(merged) added llm span support in genai utils. This PR3862(not merged) is adding more attributes to llm span. The second PRs changes will be incorporated in current PR and will be moved out from draft state.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

from opentelemetry.instrumentation.utils import unwrap
from opentelemetry.semconv.schemas import Schemas
from opentelemetry.trace import get_tracer
from opentelemetry.util.genai.handler import get_telemetry_handler

Choose a reason for hiding this comment

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

After this coupling, opentelemetry-util-genai should be added to the dependency in pyproject.toml

__name__,
__version__,
tracer_provider,
schema_url=Schemas.V1_37_0.value,

Choose a reason for hiding this comment

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

Looks like the version that is being used in opentelemetry-util-genai is Schemas.V1_36_0.value. Should it be updated over there as we are downgrading?

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.

7 participants