Skip to content

[tracing-spans] Add option to remove params from traces #2941

@pat-trunk-io

Description

@pat-trunk-io

Motivation

Loving the new tracing feature, however traces include potentially PII info.

I assume these are generated because this value is set to true:
https://github.com/SeaQL/sea-orm/blob/master/src/database/db_connection.rs#L231

Proposed Solutions

Ideally something similar to here:
sea-orm-tracing configuration

let config = TracingConfig::default()
    .with_statement_logging(true)  // Include SQL in spans (default: false for security)
    .with_parameter_logging(false) // Include query parameters (default: false)

Additional Information

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions