Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] When using the code on the telemetry example #440

Open
Bennoo opened this issue Jan 30, 2025 · 0 comments
Open

[BUG] When using the code on the telemetry example #440

Bennoo opened this issue Jan 30, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Bennoo
Copy link

Bennoo commented Jan 30, 2025

Describe the bug
When reproducing the code with telemetry (docs/source/en/tutorials/inspect_runs.md). There is an error from the telemetry with the message format.

Code to reproduce the error

from opentelemetry import trace
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import BatchSpanProcessor

from openinference.instrumentation.smolagents import SmolagentsInstrumentor
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
from opentelemetry.sdk.trace.export import ConsoleSpanExporter, SimpleSpanProcessor

endpoint = "http://0.0.0.0:6006/v1/traces"
trace_provider = TracerProvider()
trace_provider.add_span_processor(SimpleSpanProcessor(OTLPSpanExporter(endpoint)))

SmolagentsInstrumentor().instrument(tracer_provider=trace_provider)

Error logs (if any)
Invalid type dict in attribute 'llm.input_messages.0.message.content' value sequence. Expected one of ['bool', 'str', 'bytes', 'int', 'float'] or None

Expected behavior
The message text property is logged

Packages version:
openinference-instrumentation-smolagents==0.1.2 smolagents==1.6.0

@Bennoo Bennoo added the bug Something isn't working label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant