Hi team, any links on exporting phoenix traces to elasticesearch?
thanks for the quick reply. Is there any general reference for any of the 2 scenarios you mentioned?
Hi Gouri, please see the how-to section of the docs for examples. https://docs.arize.com/phoenix/tracing/how-to-tracing/manual-instrumentation/custom-spans#configuring-a-tracer
Don't have experience doing this Gouri but this could work https://www.elastic.co/guide/en/observability/current/apm-open-telemetry.html
thanks
I am using the below code with elasticesearch APM endpoint but I can see only limited traces in elasticsearch for LangChain AutoInstrumentor. SPAN kinds like LLM, Tool are missing
resource = Resource(attributes={
ResourceAttributes.PROJECT_NAME: '<your-project-name>'
})
tracer_provider = TracerProvider(resource=resource)
trace.set_tracer_provider(tracer_provider)
tracer = trace.get_tracer(__name__)
collector_endpoint = Elastic APM Endpoint
span_exporter = OTLPSpanExporter(endpoint=collector_endpoint)
simple_span_processor = SimpleSpanProcessor(span_exporter=span_exporter)
trace.get_tracer_provider().add_span_processor(simple_span_processor)Any suggestions on how to proceed ahead?
Sorry Goiri, donβt have experience or access to ES APM. Are you exporting to a Phoenix instance as well?
