Replies: 35 comments
-
|
Also, I am getting a weird bug where deleting all the langfuse stuff in my code breaks the code that used to work: running the pipeline again gives me the same langfuse error, though I have not mentioned it once in my codebase. |
Beta Was this translation helpful? Give feedback.
-
|
hey @russkiyximik, did you install langfuse? |
Beta Was this translation helpful? Give feedback.
-
|
you can install the monitoring dependencies - pip install "cognee[monitoring]" let us know if this works thanks! |
Beta Was this translation helpful? Give feedback.
-
|
Okay, so I got rid of the error by installing |
Beta Was this translation helpful? Give feedback.
-
|
However, I am still getting object of type "none" cannot be called |
Beta Was this translation helpful? Give feedback.
-
|
can you share the script |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
It's running but as I said I am getting the highlighted calling error and the trace isn't showing up in langfuse cloud |
Beta Was this translation helpful? Give feedback.
-
|
got it did you set these env in root LANGFUSE_PUBLIC_KEY=pk-lf-... |
Beta Was this translation helpful? Give feedback.
-
|
Yes I have |
Beta Was this translation helpful? Give feedback.
-
|
can you try remove these lines from script and run it - from cognee.modules.observability.get_observe import get_observe |
Beta Was this translation helpful? Give feedback.
-
|
Yes the script works after removing those |
Beta Was this translation helpful? Give feedback.
-
|
I get the correct answer from cognee.search |
Beta Was this translation helpful? Give feedback.
-
|
what about the trace is it showing up in langfuse cloud |
Beta Was this translation helpful? Give feedback.
-
|
Nope |
Beta Was this translation helpful? Give feedback.
-
|
That import does not work |
Beta Was this translation helpful? Give feedback.
-
|
I'm using langfuse==2.60.10 |
Beta Was this translation helpful? Give feedback.
-
|
There is ``` from langfuse.client import LangfuseClient |
Beta Was this translation helpful? Give feedback.
-
|
https://python-sdk-v2.docs-snapshot.langfuse.com/docs/observability/sdk/python/decorators/ try this import - |
Beta Was this translation helpful? Give feedback.
-
|
Ah unfortunately it has not sent the traces |
Beta Was this translation helpful? Give feedback.
-
|
can you please try this |
Beta Was this translation helpful? Give feedback.
-
|
This code ```from langfuse.decorators import observe, langfuse_context @observe() main() langfuse_context.flush()``` |
Beta Was this translation helpful? Give feedback.
-
|
Yields this |
Beta Was this translation helpful? Give feedback.
-
|
ill load dotenv |
Beta Was this translation helpful? Give feedback.
-
|
Okay so now it runs with connection to the client but there is no trace in the lcoud |
Beta Was this translation helpful? Give feedback.
-
|
cloud |
Beta Was this translation helpful? Give feedback.
-
|
can you pleae update it in your script import observe, and @observe() at top of the function like this |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Is this what you mean? |
Beta Was this translation helpful? Give feedback.
-
|
If so I am still not seeing the trace in the cloud |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
=Hey guys, has anyone successfuly implemented Langfuse tracing in their project? I am following the quick startup guide on the Cognee docs for the integration but I am getting the highlighted error
Object of type "None" cannot be calledfor the first line in the code ```@observe(name="example_run", as_type="example")async def simple_test():
await cognee.prune.prune_data()
await cognee.prune.prune_system(metadata=True)
This discussion was automatically pulled from Discord.
Beta Was this translation helpful? Give feedback.
All reactions