Skip to content

Add a setting to remove prompts and completions from tracing #1571

Open
@mikkelalv

Description

@mikkelalv

Description

I are currently not able to use the tracing from pydantic-ai in production because the spans contain prompts and completions, which is very sensitive data.

Adding a settings somewhere that disabled the tracing of sensitive data like prompts and completions would be great, and make us able to use the tracing from pydantic-ai out of the box.

A possible solution could be to add a parameter to InstrumentationSettings that controls whether sensitive data is included in the traces.

References

Other libraries, like OpenLLMetry, offer this functionality: https://www.traceloop.com/docs/openllmetry/privacy/traces

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions