Skip to content

@envelop/opentelemetry: Support disabling graphql.resolver.args logging #2895

@ktmouk

Description

@ktmouk

Is your feature request related to a problem? Please describe.

While the variables: false option disables graphql.execute.variables logging, graphql.resolver.args is still unconditionally logged when resolvers: true is set. This means sensitive data passed as resolver arguments (e.g., mutation inputs) is recorded in spans even when users explicitly opt out of variable logging.

Describe the solution you'd like

When variables is false, graphql.resolver.args should also be omitted from resolver spans (relevant code).

Describe alternatives you've considered

Add a resolverArgs option (similar to the existing variables option) to control whether graphql.resolver.args is recorded in resolver spans.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions