Skip to content

Commit

Permalink
fix(py): Removed casting to the dictionary causing errors on OpenTele…
Browse files Browse the repository at this point in the history
…metry init (#1979)
  • Loading branch information
kirgrim authored Feb 14, 2025
1 parent 3634178 commit 24ca843
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py/packages/genkit/src/genkit/core/tracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import os
import sys
from collections.abc import Sequence
from typing import Any, cast
from typing import Any

import requests # type: ignore[import-untyped]
from opentelemetry import trace as trace_api
Expand Down Expand Up @@ -37,7 +37,7 @@ def export(self, spans: Sequence[ReadableSpan]) -> SpanExportResult:
'startTime': span.start_time / 1000000,
'endTime': span.end_time / 1000000,
'attributes': convert_attributes(
attributes=cast(span.attributes, dict), # type: ignore
attributes=span.attributes, # type: ignore
),
'displayName': span.name,
# "links": span.links,
Expand Down

0 comments on commit 24ca843

Please sign in to comment.