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] Traces not registering locally with the new instrumentation technique #4716

Open
arthurbrenno opened this issue Sep 22, 2024 · 1 comment
Labels
bug Something isn't working c/traces triage issues that need triage

Comments

@arthurbrenno
Copy link

Describe the bug
Im using a self-hosted phoenix version and playing around with some API requests. My traces are not beeing registered in localhost:6006.

To Reproduce
Steps to reproduce the behavior:

  1. Create a docker-compose:
services:
  phoenix:
    image: arizephoenix/phoenix:latest  # Ensure the Phoenix version is 4.0.0 or later
    depends_on:
      - db
    ports:
      - "6006:6006"  # Phoenix UI and OTLP HTTP collector
      - "4317:4317"  # OTLP gRPC collector
      - "9090:9090"  # Optional: Prometheus metrics port, if enabled
    environment:
      - PHOENIX_SQL_DATABASE_URL=postgresql://postgres:postgres@db:5432/postgres  # PostgreSQL connection URL
      - PHOENIX_WORKING_DIR=/mnt/data  # Optional: Specify working directory for Phoenix
    volumes:
      - phoenix_data:/mnt/data   # Persistent volume for Phoenix data

  db:
    image: postgres:14  # PostgreSQL version >= 14
    restart: always
    environment:
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=postgres
      - POSTGRES_DB=postgres
    ports:
      - "5432:5432"  # PostgreSQL port
    volumes:
      - postgres_data:/var/lib/postgresql/data  # Persistent volume for PostgreSQL database

volumes:
  phoenix_data:
    driver: local  # Persistent volume for Phoenix data
  postgres_data:
    driver: local  # Persistent volume for PostgreSQL data
  1. Use the following versions of the dependencies:
"openinference-instrumentation-llama-index>=2",
    "opentelemetry-proto>=1.12.0",
    "arize-phoenix-otel>=0.5.1",
    "llama-index-callbacks-arize-phoenix>=0.1.6",
  1. Use the following code to setup phoenix:
from openinference.instrumentation.llama_index import LlamaIndexInstrumentor
from phoenix.otel import register

tracer_provider = register(
    project_name="default",
    endpoint="http://localhost:6006/v1/traces",
)

LlamaIndexInstrumentor().instrument(tracer_provider=tracer_provider)

Screenshots
image

image

Environment (please complete the following information):

  • OS: MacOS
  • Notebook Runtime uv as a package manager + python 3.10
@arthurbrenno arthurbrenno added bug Something isn't working triage issues that need triage labels Sep 22, 2024
@github-project-automation github-project-automation bot moved this to 📘 Todo in phoenix Sep 22, 2024
@dosubot dosubot bot added the c/traces label Sep 22, 2024
@mikeldking
Copy link
Contributor

Hi @arthurbrenno sorry you are facing issues. At first glance I'm not 100% sure what's wrong. Could you try using https://github.com/Arize-ai/openinference/tree/main/python/instrumentation/openinference-instrumentation-llama-index directly?

The errors seem very odd. Will dig in a bit more with the team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working c/traces triage issues that need triage
Projects
Status: 📘 Todo
Development

No branches or pull requests

2 participants