Docs
  • Guides
  • APIs (opens in a new tab)
  • Products
    Elasticsearch Observability Security Elastic Cloud
  • Reference
  • Troubleshoot
  • Release notes
  1. Docs /
  2. Reference /
  3. Ingestion tools /
  4. APM /
  5. APM agents /
  6. APM Ruby agent

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:

class MySchema < GraphQL::Schema
  # ...

  trace_with ElasticAPM::GraphQL
end
		
  1. <-- include this
Previous
OpenTracing API
Next
Performance tuning
  • View as Markdown
  • Report a docs issue
  • Edit this page
  • Learn how to contribute
Get started free
  • 14-day free trial
  • All features included
  • No setup required
Section
Reference
Docs Guides APIs (opens in a new tab)
Products
Elasticsearch Observability Security Elastic Cloud
Reference Troubleshoot Release notes
Version
Reference Ingestion tools APM APM agents
  • APM Ruby agent
    • Set up the APM Ruby agent
      • Getting started with Rails
      • Getting started with Rack
    • Supported technologies
    • Configuration
    • Advanced topics
      • Adding additional context
      • Custom instrumentation
    • API reference
    • Metrics
    • Logs
    • OpenTracing API
    • GraphQL
    • Performance tuning
    • Upgrading
    • Troubleshooting
Elastic logo
  • Trademarks
  • Terms of Use
  • Privacy
  • Sitemap

© 2026 Elasticsearch B.V. All Rights Reserved.

This content is available in different formats for convenience only. All original licensing terms apply.

Elasticsearch is a trademark of Elasticsearch B.V., registered in the U.S. and in other countries. Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.