---
title: GraphQL
description: The agent comes with support for GraphQL based APIs. This slightly alters how transactions are named when they relate to GraphQL queries, so they are...
url: https://www.elastic.co/docs/reference/apm/agents/ruby/graphql
products:
  - APM Agent
  - APM Ruby Agent
applies_to:
  - Serverless Observability projects: Generally available
  - Elastic Stack: Generally available
  - Application Performance Monitoring Agent for Ruby: Generally available
---

# GraphQL
The agent comes with support for GraphQL based APIs.
This slightly alters how transactions are named when they relate to GraphQL queries, so they are easier to tell apart and debug.
To enable GraphQL support, add the included Tracer to your schema:
```ruby
class MySchema < GraphQL::Schema
  # ...

  tracer ElasticAPM::GraphQL
end
```