🐛 Bug Report: TRACELOOP_TRACE_CONTENT
Which component is this bug for?
AlephAlpha Instrumentation
📜 Description
In my understanding if the TRACELOOP_TRACE_CONTENT is set to false, the TRACELOOP_ENTITY_INPUT and TRACELOOP_ENTITY_OUTPUT attributes should not be set. Do I understand that correctly? However it seems to me that TRACELOOP_TRACE_CONTENT is ignored since the should_send_prompts() function is never called in _handle_call() and _handle_stream_call() ?
👟 Reproduction steps
- Set TRACELOOP_TRACE_CONTENT to false
👍 Expected behavior
It should not add the input and output (body of the http requests)
👎 Actual Behavior with Screenshots
It actually sets the input and output attributes
🤖 Python Version
3.12
📃 Provide any additional context for the Bug.
No response
👀 Have you spent some time to check if this bug has been raised before?
- [x] I checked and didn't find similar issue
Are you willing to submit PR?
None
Hey @FCramer, it is checked in _handle_span_input and _handle_span_output
Do you see outputs and inputs being set? Can you provide an example?
Hi @nirga, the "TRACELOOP_TRACE_CONTENT" env is not taking effect, I still see "Gen ai completion 0 content" in attributes. Can you please suggest how to troubleshoot this issue?
Hey @tomsun-jm which model are you using?
Hi @nirga, I'm using Vertex AI Gemini 2.5 Pro, with FastAPI and Dynatrace.
Thanks @tomsun-jm - found the issue. Will fix that