-
Notifications
You must be signed in to change notification settings - Fork 338
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] On turning on Arize tracing, the api_keys is being captured in Arize. #1213
Comments
@abhishek9sharma Good find and thanks for submitting this issue! I believe this might a regression since telemetry was updated sometime in 0.5.x from a post-processing flow that used the Guard History to its current wrapper approach. If you are interested in submitting a PR here's some info that should point you in the right direction. The Also here is the (relatively naive) redaction logic we previously used when telemetry was still based on Guard History: It may not be directly applicable but could be used as inspiration to recursively redact kwarg values somewhere around the serialization process in As an aside, do you also see the key in any of the other spans in the trace? |
@CalebCourier Thanks for the direction. I also saw the same issue in call log. Have raised PR accordingly #1217 |
Describe the bug
On turning on Arize tracing, the api_keys is captured in Arize. Happens when api_key is passed as parameter.
I am happy to raise a PR to fix this. Need some guidance on where to make changes.
To Reproduce
Below is a test script. You will need to populate the api_keys whereve required
Expected behavior
Can the key be stripped off the final trace
Library version:
Version (e.g. 0.6.2)
Additional context
When key is set in env var it is not logged to arize.
The text was updated successfully, but these errors were encountered: