[Bug]: Not able to see the agent graph button
What component(s) are affected?
- [x] Opik Python SDK
- [ ] Opik Typescript SDK
- [ ] Opik Agent Optimizer SDK
- [ ] Opik UI
- [ ] Opik Server
- [ ] Documentation
Opik version
- Opik version: 1.8.83
Describe the problem
I am using Opik, version 1.8.83, and it is cloud-hosted, but I am not able to see the agent graph. I am using a callback function for tracing.
Reproduction steps and code snippets
No response
Error logs or stack trace
No response
Healthcheck results
*** HEALTHCHECK STARTED ***
Python version: 3.11.6
Opik version: 1.8.83
*** CONFIGURATION FILE ***
Config file path: C:\Users\Divya\.opik.config
Config file exists: yes
*** CURRENT CONFIGURATION ***
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Setting ┃ Value ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ api_key │ *** HIDDEN *** │
│ background_workers │ 4 │
│ check_tls_certificate │ True │
│ console_logging_level │ INFO │
│ default_flush_timeout │ None │
│ enable_json_request_compression │ True │
│ enable_litellm_models_monitoring │ True │
│ file_logging_level │ None │
│ file_upload_background_workers │ 16 │
│ guardrail_timeout │ 30 │
│ log_start_trace_span │ True │
│ logging_file │ opik.log │
│ maximal_queue_size │ 100000 │
│ maximal_queue_size_batch_factor │ 10 │
│ project_name │ Default Project │
│ pytest_experiment_enabled │ True │
│ sentry_enable │ True │
│ track_disable │ False │
│ url_override │ https://www.comet.com/opik/api/ │
│ workspace │ divya-m │
└──────────────────────────────────┴─────────────────────────────────┘
*** CONFIGURATION SCAN ***
Configuration issues: not found
*** BACKEND WORKSPACE AVAILABILITY ***
--> Checking backend workspace availability at: https://www.comet.com/opik/api/
Backend workspace available: yes
*** HEALTHCHECK COMPLETED ***
(venv) PS C:\Users\Divya\TCS\AI\bar-agentic-sol>
Hih @divyamuralidharan-ai , are you referring to the agent graph viewer ?
https://www.comet.com/docs/opik/tracing/log_agent_graphs
can you send a link to the trace or share more information on which integration you are using or a short code snippet?
https://www.comet.com/opik/divya-m/projects/019a07a0-1b1d-7df6-ae0a-754599d1ba25/traces?traces_filters=%5B%5D&size=100&height=small&trace=019a2f5d-48dd-7285-92cb-e1ac45d5add9&span=&trace_panel_filters=%5B%5D&thread=&trace_panel_graph=1&traceTab=input&traces_sorting=%5B%7B%22id%22%3A%22end_time%22%2C%22desc%22%3Atrue%7D%5D
[ { "id": "019a2f50-4b08-72ee-9fef-d5efa1ad5a16", "name": "LangGraph", "start_time": "2025-10-29T09:33:02.600202Z", "end_time": "2025-10-29T09:34:11.063961Z", "input": { "input": { "run_id": null, "user_query": "Fetch the latest news sentiment for Lloyds Bank and summarise if the market outlook is positive or negative.", "context": {}, "request_summary": null, "response_summary": null, "current_task": null, "decisions": [], "agent_states": [], "final_output": null } }, "output": { "user_query": "Fetch the latest news sentiment for Lloyds Bank and summarise if the market outlook is positive or negative.", "context": { "news_sentiment_agent_step1": "The latest news sentiment for Lloyds Bank indicates a positive market outlook. Here are the key highlights:\n\n- Recent Performance: Lloyds Banking Group (NYSE:LYG) has reached a new 12-month high at $4.70, showcasing strong investor interest.\n- Analyst Upgrades: RBC Capital has raised its price target for Lloyds from 100 GBp to 110 GBp, maintaining an "Outperform" rating, suggesting confidence in the stock's potential.\n- Financial Results: The bank delivered better-than-expected revenue, although it did miss earnings expectations slightly. This has not deterred positive sentiment overall.\n- Market Trends: A positive sentiment is fueled by anticipation of favorable economic conditions, particularly as interest rate cuts by the U.S. Federal Reserve are expected.\n- Potential Risks: Despite the optimistic outlook, the closure of 303 branches raises concerns about customer sentiment, which may impact the overall perception of the bank.\n\nOverall, the sentiment score is 0.6, classified as "Positive," with emotions of optimism and some uncertainty present in the market. The recommendation is to buy, with a medium confidence level and medium risk associated with volatility and market dynamics." }, "request_summary": null, "response_summary": null, "current_task": null, "decisions": [ { "step": 1, "selected_agent": "news_sentiment_agent", "reasoning": "The user specifically requests news sentiment analysis for Lloyds Bank, which falls under the capabilities of the news_sentiment_agent. This is necessary to understand the market outlook based on recent news.", "task": "Fetch the latest news sentiment for Lloyds Bank and summarize if the market outlook is positive or negative.", "timestamp": "2025-10-29T09:33:04.698276+05:30" } ], "agent_states": [ { "agent_name": "news_sentiment_agent", "agent_input": "Fetch the latest news sentiment for Lloyds Bank and summarize if the market outlook is positive or negative.", "tool_call_response_pair": [ { "tool_name": "fetch_news", "arguments": { "query": "Lloyds Bank" }, "response": "{"query":"Lloyds Bank","results":[{"title":"Lloyds Banking Group (NYSE:LYG) Hits New 12-Month High - Here's Why","link":"https://www.marketbeat.com/instant-alerts/lloyds-banking-group-nyselyg-hits-new-12-month-high-heres-why-2025-10-27/","snippet":"Lloyds Banking Group (NYSE:LYG) Reaches New 1-Year High - What's Next?","date":"15 hours ago","source":"MarketBeat"},{"title":"Lloyds Banking price target raised to 110 GBp from 100 GBp at RBC Capital","link":"https://www.tipranks.com/news/the-fly/lloyds-banking-price-target-raised-to-110-gbp-from-100-gbp-at-rbc-capital-thefly","snippet":"RBC Capital analyst Benjamin Toms raised the firm's price target on Lloyds Banking (LYG) to 110 GBp from 100 GBp and keeps an Outperform rating on the...","date":"16 hours ago","source":"TipRanks"},{"title":"Lloyds Banking Group Delivers Strong Results, But BofA Stays Neutral","link":"https://finimize.com/content/lloyds-banking-group-delivers-strong-results-but-bofa-stays-neutral","snippet":"Lloyds impressed with better-than-expected profit and solid fee growth, yet BofA kept its price target as cost discipline remains and the motor finance...","date":"17 hours ago","source":"Finimize"},{"title":"Stocks to buy: Sagar Doshi suggests Amber Enterprises, Lloyds Metals, Bank of Maharashtra shares to buy","link":"https://www.livemint.com/market/stock-market-news/stocks-to-buy-sagar-doshi-suggests-amber-enterprises-lloyds-metals-bank-of-maharashtra-shares-to-buy-11761708379889.html","snippet":"Nifty 50 and Sensex opened positively, influenced by Asian markets ahead of the US Fed's policy announcement. Nifty rose 0.18% and Sensex 0.04%.","date":"5 hours ago","source":"Mint"},{"title":"Lloyds Bank customers warned to 'consider' switching to rival bank","link":"https://www.birminghammail.co.uk/news/cost-of-living/lloyds-bank-customers-warned-consider-32767697","snippet":"Lloyds, Halifax and Bank of Scotland, which are all part of the Lloyds Banking Group, will shut at least 303 bank branches in 2025 and 2026.","date":"3 hours ago","source":"Birmingham Live"}],"count":5,"summary":"{\n \"summary\": \"Lloyds Banking Group PLC's stock reached a new 52-week high at $4.70, with recent upgrades from multiple analysts indicating a generally positive outlook. The company reported a quarterly EPS of $0.05, missing estimates, but revenue exceeded expectations. Institutional investment activity shows increased interest, with a consensus rating of 'Moderate Buy'. However, the bank is set to close 15 branches soon, which may affect customer sentiment. The overall market sentiment is positive, with anticipation of favorable economic conditions following potential interest rate cuts by the US Federal Reserve.\",\n \"sentiment_score\": 0.6,\n \"sentiment_label\": \"Positive\",\n \n \"emotions\": [\"optimism\", \"uncertainty\"],\n\n \"event_sentiment\": {\n \"regulation\": \"Neutral\",\n \"adoption\": \"Neutral\",\n \"technology\": \"Positive\",\n \"security\": \"Neutral\",\n \"macroeconomics\": \"Positive\",\n \"market_sentiment\": \"Positive\"\n },\n\n \"risk_level\": \"Medium\",\n \"time_orientation\": \"Forward-looking\",\n\n \"trading_signals\": {\n \"momentum\": \"bullish\",\n \"volatility_outlook\": \"medium\",\n \"liquidity_outlook\": \"positive\",\n \"whale_activity\": \"supportive\"\n },\n\n \"recommendation\": \"buy\",\n \"confidence\": \"medium\"\n}"}" } ], "agent_output": "The latest news sentiment for Lloyds Bank indicates a positive market outlook. Here are the key highlights:\n\n- Recent Performance: Lloyds Banking Group (NYSE:LYG) has reached a new 12-month high at $4.70, showcasing strong investor interest.\n- Analyst Upgrades: RBC Capital has raised its price target for Lloyds from 100 GBp to 110 GBp, maintaining an "Outperform" rating, suggesting confidence in the stock's potential.\n- Financial Results: The bank delivered better-than-expected revenue, although it did miss earnings expectations slightly. This has not deterred positive sentiment overall.\n- Market Trends: A positive sentiment is fueled by anticipation of favorable economic conditions, particularly as interest rate cuts by the U.S. Federal Reserve are expected.\n- Potential Risks: Despite the optimistic outlook, the closure of 303 branches raises concerns about customer sentiment, which may impact the overall perception of the bank.\n\nOverall, the sentiment score is 0.6, classified as "Positive," with emotions of optimism and some uncertainty present in the market. The recommendation is to buy, with a medium confidence level and medium risk associated with volatility and market dynamics." } ], "final_output": "The latest news sentiment for Lloyds Bank indicates a positive market outlook. Here’s a summary of the key points:\n\n- Recent Performance: Lloyds Banking Group (NYSE:LYG) has recently reached a new 12-month high at $4.70, demonstrating strong interest from investors.\n\n- Analyst Upgrades: RBC Capital has upgraded its price target for Lloyds from 100 GBp to 110 GBp, while maintaining an “Outperform” rating. This suggests a strong level of confidence in the stock's potential.\n\n- Financial Results: The bank reported better-than-expected revenue figures, though it slightly missed earnings expectations. Despite this minor setback, the overall sentiment remains positive.\n\n- Market Trends: The optimistic market sentiment is bolstered by expectations of favorable economic conditions, particularly in light of anticipated interest rate cuts by the U.S. Federal Reserve.\n\n- Potential Risks: It’s important to note that the planned closure of 303 branches could raise concerns regarding customer sentiment and impact the bank’s overall public perception.\n\nOverall, the sentiment score stands at 0.6, categorized as "Positive." This reflects an atmosphere of optimism, though some uncertainty remains. Given these insights, a recommendation to buy is provided, accompanied by medium confidence and a recognition of the medium risks associated with market volatility.\n\nIn conclusion, the outlook for Lloyds Bank is positive, but investors should remain mindful of emerging risks." }, "duration": 68463.759, "usage.prompt_tokens": 2096, "usage.completion_tokens": 501, "total_estimated_cost": 0.000615, "llm_span_count": 5, "comments": "", "feedback_scores.User feedback": "-", "feedback_scores.news_sentiment_agent_answer_relevancy": 1, "feedback_scores.news_sentiment_agent_answer_relevancy_reason": "The score is 1.00 because the response directly addressed the request for the latest news sentiment for Lloyds Bank and provided a clear summary of the market outlook without any irrelevant statements.", "feedback_scores.news_sentiment_agent_correctness_geval": 0.706039649, "feedback_scores.news_sentiment_agent_correctness_geval_reason": "The Actual Output provides a generally positive sentiment about Lloyds Bank, aligning with the Expected Output's overall tone. It includes relevant details such as recent performance, analyst upgrades, and market trends. However, it introduces some inaccuracies, such as the sentiment score and the specific mention of earnings expectations, which were not present in the Expected Output. Additionally, while it addresses potential risks, it lacks the same level of detail regarding institutional investor behavior and adaptation to digital trends, which affects completeness.", "feedback_scores.news_sentiment_agent_hallucination": 0, "feedback_scores.news_sentiment_agent_hallucination_reason": "The score is 0.00 because the actual output fully aligns with the context of 'News sentiment analysis' without any contradictions.", "feedback_scores.news_sentiment_agent_pii_leakage": 1, "feedback_scores.news_sentiment_agent_pii_leakage_reason": "The score is 1.00 because there were significant privacy violations identified, including unauthorized access to personal data, lack of encryption for sensitive information, and failure to obtain user consent for data collection. These violations indicate a severe disregard for user privacy and data protection standards.", "feedback_scores.news_sentiment_agent_task_completion": 1, "feedback_scores.news_sentiment_agent_task_completion_reason": "The actual outcome successfully fetched the latest news sentiment for Lloyds Bank, summarized the market outlook as positive, and provided a sentiment score along with key highlights, fully aligning with the desired task.", "feedback_scores.news_sentiment_agent_tool_correctness": 1, "feedback_scores.news_sentiment_agent_tool_correctness_reason": "All expected tools ['fetch_news'] were called (order not considered).", "feedback_scores.supervisor_answer_relevancy": 0.9, "feedback_scores.supervisor_answer_relevancy_reason": "The score is 0.90 because while the response provided a generally positive sentiment regarding Lloyds Bank, it included irrelevant statements about branch closures that detracted from the focus on the market outlook.", "feedback_scores.supervisor_correctness_geval": 0.569617413, "feedback_scores.supervisor_correctness_geval_reason": "The response provides a generally positive sentiment about Lloyds Bank, highlighting key points such as recent performance and analyst upgrades. However, it diverges from the Expected Output by inaccurately stating the number of branch closures and lacks specific financial metrics like EPS. While it captures the overall positive market sentiment, it does not fully align with the completeness and precision of the Expected Output.", "feedback_scores.supervisor_hallucination": 0, "feedback_scores.supervisor_hallucination_reason": "The score is 0.00 because there are no contradictions and the actual output fully aligns with the context of Stock Performance and Market Sentiment Analysis.", "feedback_scores.supervisor_pii_leakage": 1, "feedback_scores.supervisor_pii_leakage_reason": "The score is 1.00 because there were significant privacy violations identified, including unauthorized access to personal data, lack of encryption for sensitive information, and failure to obtain user consent for data collection. These violations indicate a severe disregard for user privacy and data protection standards.", "feedback_scores.supervisor_task_completion": 1, "feedback_scores.supervisor_task_completion_reason": "The actual outcome successfully fetched the latest news sentiment for Lloyds Bank and provided a clear summary indicating a positive market outlook, fully aligning with the desired task.", "feedback_scores.supervisor_tool_correctness": 1, "feedback_scores.supervisor_tool_correctness_reason": "All expected tools ['news_sentiment_agent'] were called (order not considered).", "feedback_scores.test_status": 0 } ]
I am using Langgraph and python SDK. Also i saw one more issue, for some traces it is showing the graph with all agents name not the agents which is used in that particular trace. It is not dynamically created. all trace which shows graph is same. and some traces dont have graph even the span and traces are available. @Nimrod007 : please help
Hi @divyamuralidharan-ai! I can see you're using our langgraph integration based on the span content, however in the payload I don't see the graph definition. Could you please make sure that you are passing a graph to the OpikTracer callback instance like that?
app = graph.compile()
opik_tracer = OpikTracer(graph=app.get_graph(xray=True))
More details and the full example can be found in our documentation https://www.comet.com/docs/opik/integrations/langgraph#using-the-opiktracer
Please let me know if it helped.