Skip to content

'FragmentDefinition' object has no attribute 'operation'" #966

@JannikZed

Description

@JannikZed

Describe the bug:
I'm using elastic APM with Django 3.1.2 and graphql.
On every GraphQL Query, I'm seeing now this error: AttributeError: 'FragmentDefinition' object has no attribute 'operation'

The relevant file is: elasticapm/instrumentation/packages/graphql.py in get_graphql_tx_name at line 99

To Reproduce
I'm not sure yet, why the error is occurring and I'm just getting started with the service. If you can guide me to the right direction, I can create a reproducible example.

Environment (please complete the following information)

  • OS: Linux docker Container
  • Python version:
  • Framework and version : Django 3.1.2
  • APM Server version:
  • Agent version: 5.9.0

Additional context

Add any other context about the problem here.

  • Agent config options

    Click to expand
    replace this line with your agent config options remember to mask any sensitive fields like tokens 
  • requirements.txt:

    Click to expand
    replace this line with your `requirements.txt` 

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