Debugging OpenTelemetry Config Issues in Arize Integration
hi, not seeing any traces in AX:
from arize.otel import register, Transport
from openinference.instrumentation.openai_agents import (
OpenAIAgentsInstrumentor,
)
import openai
tracer_provider = register(
space_id=os.getenv("ARIZE_SPACE_ID"),
api_key=os.getenv("ARIZE_API_KEY"),
project_name="joke-evaluation-langgraph",
endpoint="https://otlp.arize.com/v1/trace",
transport=Transport.HTTP,
)
OpenAIAgentsInstrumentor().instrument(tracer_provider=tracer_provider)
self.client = openai
self.callbacks = []
and:
๐ญ OpenTelemetry Tracing Details ๐ญ
| Arize Project: joke-evaluation-langgraph
| Span Processor: BatchSpanProcessor
| Collector Endpoint: otlp.arize.com
| Transport: gRPC
| Transport Headers: {'authorization': '****', 'api_key': '****', 'arize-space-id': '****', 'space_id': '****', 'arize-interface': '****', 'user-agent': '****'}
|
| Using a default SpanProcessor. `add_span_processor` will overwrite this default.
|
| `register` has set this TracerProvider as the global OpenTelemetry default.
| To disable this behavior, call `register` with `set_global_tracer_provider=False`.
๐ญ LangGraph Joke Evaluation Agent Starting... ๐ญnow, the config is somehow not read correctly? not seeing any errors though. how can i debug further
