Open mattzcarey opened 2 weeks ago
See https://docs.pydantic.dev/logfire/guides/advanced/scrubbing/#scrubbing-less-with-a-callback for how to whitelist values.
You can find this page if you search the docs for 'redacted' but I think you're at least the 4th person to ask about this so I think people just aren't trying that. We should probably change [Redacted due to 'auth']
to [Scrubbed due to 'auth']
to increase the chances that people will see the page in the sidebar or the params to configure
and make the connection. Do you think that would have helped you?
@dmontagu I think we need to implement https://pydanticlogfire.slack.com/archives/C06EDRBSAH3/p1714500893342199?thread_ts=1714500208.780959&cid=C06EDRBSAH3:
The UI could help, e.g. you could click on a redacted value and get a popup with some generated callback code and a link to docs.
WDYT of that? It'd require some changes to both the SDK and UI and some design discussion.
Thanks. Makes alot of sense I didnt quite get there in the docs yet :)
Reopening because we still need to do something here, too many users stumble on it.
Description
I have a FastAPI endpoint which I am hitting to get some authentication types from some documentation. The endpoint is /auth/classify. Neither the input or the output from that endpoint contains secrets yet the body is still redacted:
Is there anyway to switch this off as it would be nice to see these in the logs. To be clear this isnt a header or anything. This is just a body with the key auth and a value of string[] (it's actually an enum of values like 'BASIC', 'BEARER' etc.)
I guess I can manually emit a span but that kinda defeats the point of auto instrumentation.
Python, Logfire & OS Versions, related packages (not required)