---
title: Troubleshooting Ruby App and API Protection
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Datadog Security > App and API Protection > Enabling App and API
  Protection > Enabling AAP for Ruby > Troubleshooting Ruby App and API
  Protection
---

# Troubleshooting Ruby App and API Protection

{% callout %}
# Important note for users on the following Datadog sites: app.ddog-gov.com

{% alert level="danger" %}
This product is not supported for your selected [Datadog site](https://docs.datadoghq.com/getting_started/site.md). ().
{% /alert %}

{% /callout %}

## Common Issues{% #common-issues %}

### No security signals appearing{% #no-security-signals-appearing %}

1. Verify Agent version:
   - Ensure you're running Datadog Agent v7.41.1 or higher.
   - Check Agent status: `datadog-agent status`.
1. Check Ruby tracer version:
   - Confirm you're using Ruby tracer v1.9.0 or higher.
1. Verify configuration or environment variables.

#### When using auto-instrumentation{% #when-using-auto-instrumentation %}

- Ensure that `DD_APPSEC_ENABLED` is set to `true`
- Set `DD_AGENT_HOST` and `DD_AGENT_PORT` if agent is running on a different host or port
- Check that `DD_SERVICE` and `DD_ENV` are properly configured
- Verify `DD_APM_TRACING_ENABLED=true` if using APM features

#### When using configuration file{% #when-using-configuration-file %}

- Ensure that `c.appsec.enabled` is set to `true` in your configuration
- Ensure that `c.tracing.instrument :rails` and `c.appsec.instrument :rails` is added to your configuration
- Check that `c.service` is set
- Verify that `c.tracing.enabled` is set to `true` if using APM features

### Performance impact{% #performance-impact %}

1. High latency:

   - Check Agent resource usage.
   - Verify network connectivity between Agent and Datadog.
   - Consider adjusting sampling rates.

1. High memory usage:

   - Adjust Agent resource limits if needed.

If you suspect performance issues with the Ruby tracer, please create an issue in the [Datadog Ruby tracer GitHub repository](https://github.com/DataDog/dd-trace-rb) with details about your environment and the issue you're facing.

### Still having issues?{% #still-having-issues %}

If you're still experiencing problems:

1. Check the [Application Security Monitoring troubleshooting guide](https://docs.datadoghq.com/security/application_security/troubleshooting.md).
1. Review the [Ruby tracer documentation](https://docs.datadoghq.com/tracing/trace_collection/compatibility/ruby.md).
1. Contact [Datadog support](https://docs.datadoghq.com/help).
