Skip to content

Feature: OpenTelemetryExtension field/operation exclusion list #1245

@dhay

Description

@dhay

Our GraphQL application has a "health check" query field that we use to assess the health of the service. Needless to say, this query makes up the vast bulk of the traces in our system. It would be nice if there were a way to configure the OpenTelemetryExtension with an exclusion list of fields. Alternatively, perhaps provide a filter function, similar to what is done for filtering args. i.e. something like this in the resolve method:

if not should_trace(info) or not self._field_filter(obj, info):
    return next_(obj, info, **kwargs)

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