# \#ruby

**URL:** https://discuss.elastic.co/tag/ruby/35.md

[Latest](https://discuss.elastic.co/latest.md) · [Categories](https://discuss.elastic.co/categories.md) · [Tags](https://discuss.elastic.co/tags.md)

---

## [New release of elastic-apm gem](https://discuss.elastic.co/t/new-release-of-elastic-apm-gem/390553)

<div class="topic-metadata">

**Author:** [@opiotrek](https://discuss.elastic.co/u/opiotrek)\
**Replies:** 2\
**Last updated:** [September 23, 2026, 5:56am UTC](https://discuss.elastic.co/t/new-release-of-elastic-apm-gem/390553 "2026-09-23T05:56:31Z")

</div>

Hello! The master branch contains an important fix that will unblock our upgrade to Ruby 4.0+. Can you release a new gem version?

---

## [Does span\_frames\_min\_duration config apply?](https://discuss.elastic.co/t/does-span-frames-min-duration-config-apply/378493)

<div class="topic-metadata">

**Author:** [@Khaled\_Muamar](https://discuss.elastic.co/u/Khaled_Muamar)\
**Replies:** 3\
**Last updated:** [May 28, 2025, 12:47pm UTC](https://discuss.elastic.co/t/does-span-frames-min-duration-config-apply/378493 "2025-05-28T12:47:43Z")

</div>

We attempted to increase the value of the span\_frames\_min\_duration , but it appears the agent is not honouring the configuration—we're still receiving spans shorter than the configured threshold. Note: We're setting the…

---

## [Distributed tracing with sidekiq job](https://discuss.elastic.co/t/distributed-tracing-with-sidekiq-job/355746)

<div class="topic-metadata">

**Author:** [@kurigashvili-godaddy](https://discuss.elastic.co/u/kurigashvili-godaddy)\
**Replies:** 0\
**Last updated:** [March 19, 2024, 4:48pm UTC](https://discuss.elastic.co/t/distributed-tracing-with-sidekiq-job/355746 "2024-03-19T16:48:00Z")

</div>

I would like an ability to pass trace parent from request to sidekiq job so trace id for the request and the sidekiq job is the same. Something similar is currently possible with APM for node.js I reported a Github is…

---

## [Kibana, Elasticsearch, APM with docker-compose](https://discuss.elastic.co/t/kibana-elasticsearch-apm-with-docker-compose/354798)

<div class="topic-metadata">

**Author:** [@ilhamakbar](https://discuss.elastic.co/u/ilhamakbar)\
**Replies:** 1\
**Last updated:** [March 11, 2024, 6:53pm UTC](https://discuss.elastic.co/t/kibana-elasticsearch-apm-with-docker-compose/354798 "2024-03-11T18:53:20Z")

</div>

Kibana version: 8.12.2 Elasticsearch version: 8.12.2 APM Server version: 8.12.2 Original install method (e.g. download page, yum, deb, from source, etc.) and version: docker Fresh install or upgraded from other versi…

---

## [Puma observability for elastic-apm-ruby](https://discuss.elastic.co/t/puma-observability-for-elastic-apm-ruby/326103)

<div class="topic-metadata">

**Author:** [@brightredchilli](https://discuss.elastic.co/u/brightredchilli)\
**Replies:** 2\
**Last updated:** [February 23, 2023, 3:38am UTC](https://discuss.elastic.co/t/puma-observability-for-elastic-apm-ruby/326103 "2023-02-23T03:38:42Z")

</div>

Hi, I'm running a Rails app with Puma that uses the elastic-apm-ruby agent. Looking at the startup code for the elastic agent, it looks like it gets inserted at the top of the middleware stack, but looking at puma implem…

---

## [APM/Kibana: Redis not shown as a Dependency](https://discuss.elastic.co/t/apm-kibana-redis-not-shown-as-a-dependency/310800)

<div class="topic-metadata">

**Author:** [@jpmc](https://discuss.elastic.co/u/jpmc)\
**Replies:** 0\
**Last updated:** [July 27, 2022, 8:50pm UTC](https://discuss.elastic.co/t/apm-kibana-redis-not-shown-as-a-dependency/310800 "2022-07-27T20:50:30Z")

</div>

Kibana version: 7.17 Elasticsearch version: 7.17 APM Server version: 7.17 APM Agent language and version: Ruby 2.5.3 (Rails 4.2) Browser version: Chrome 103.0.5060.134 Original install method (e.g. download page, yu…

---

## [Getting APM metrics using the/an API](https://discuss.elastic.co/t/getting-apm-metrics-using-the-an-api/292614)

<div class="topic-metadata">

**Author:** [@Maxi\_Donadio](https://discuss.elastic.co/u/Maxi_Donadio)\
**Replies:** 10\
**Last updated:** [December 22, 2021, 8:15pm UTC](https://discuss.elastic.co/t/getting-apm-metrics-using-the-an-api/292614 "2021-12-22T20:15:19Z")

</div>

Hi! I'm have the elastic APM set up on some machines. It's working quite well and all the stats are showing perfectly fine, but I don't want to use just the GUI. I'd like to get metrics (CPU Usage, Disk Usage, etc) for …

---

## [Sidekiq ECS based logging - Trace/Log Correlation](https://discuss.elastic.co/t/sidekiq-ecs-based-logging-trace-log-correlation/283147)

<div class="topic-metadata">

**Author:** [@tak1n](https://discuss.elastic.co/u/tak1n)\
**Replies:** 0\
**Last updated:** [September 2, 2021, 9:00am UTC](https://discuss.elastic.co/t/sidekiq-ecs-based-logging-trace-log-correlation/283147 "2021-09-02T09:00:28Z")

</div>

Hi :wave: :slight\_smile: Is there some documentation about how to setup Trace - Log correlation for Sidekiq based background jobs. For the Rails API server we are using ECS Logger with following setup: # config/environ…

---

## [Can I see all transactions and spans filtered by the environment in Discover?](https://discuss.elastic.co/t/can-i-see-all-transactions-and-spans-filtered-by-the-environment-in-discover/277095)

<div class="topic-metadata">

**Author:** [@m-s-santos](https://discuss.elastic.co/u/m-s-santos)\
**Replies:** 1\
**Last updated:** [July 12, 2021, 5:25pm UTC](https://discuss.elastic.co/t/can-i-see-all-transactions-and-spans-filtered-by-the-environment-in-discover/277095 "2021-07-12T17:25:35Z")

</div>

Hi! I'm trying to see all transactions and spans sent to Kibana in Discover to know if a change I made increased the amount of log. To achieve this, I was trying to see all spans and transactions filtered by the environm…

---

## [APM only shows errors and Warnings](https://discuss.elastic.co/t/apm-only-shows-errors-and-warnings/274652)

<div class="topic-metadata">

**Author:** [@mar-ro](https://discuss.elastic.co/u/mar-ro)\
**Replies:** 1\
**Last updated:** [June 1, 2021, 3:39pm UTC](https://discuss.elastic.co/t/apm-only-shows-errors-and-warnings/274652 "2021-06-01T15:39:59Z")

</div>

Good afternoon! I would like to know if it is possible to configure the different APM agents to log only errors and warnings. Is it possible to do this? How? Thank you!

---

## [Why is the context for Span so limited compared to the context for Transaction?](https://discuss.elastic.co/t/why-is-the-context-for-span-so-limited-compared-to-the-context-for-transaction/274080)

<div class="topic-metadata">

**Author:** [@m-s-santos](https://discuss.elastic.co/u/m-s-santos)\
**Replies:** 0\
**Last updated:** [May 26, 2021, 2:58pm UTC](https://discuss.elastic.co/t/why-is-the-context-for-span-so-limited-compared-to-the-context-for-transaction/274080 "2021-05-26T14:58:09Z")

</div>

Hello, I'm trying to add some custom information to a span's context; however, I can only change the context's labels. I'm wondering why there is this limitation. Also, the span's context can receive this db and http obj…

---

## [How the APM agent for Node.js works?](https://discuss.elastic.co/t/how-the-apm-agent-for-node-js-works/272697)

<div class="topic-metadata">

**Author:** [@m-s-santos](https://discuss.elastic.co/u/m-s-santos)\
**Replies:** 1\
**Last updated:** [May 11, 2021, 4:30pm UTC](https://discuss.elastic.co/t/how-the-apm-agent-for-node-js-works/272697 "2021-05-11T16:30:28Z")

</div>

Hello, I'm trying to add APM to a Ruby application running with Eventmachine. However, since the Ruby agent doesn't support Eventmachine, I'm trying to see what I can do to make it work. The problem is that since it wor…

---

## [\[ElasticAPM\] Alternative to "enabled\_environments" with ruby apm agent](https://discuss.elastic.co/t/elasticapm-alternative-to-enabled-environments-with-ruby-apm-agent/271498)

<div class="topic-metadata">

**Author:** [@mar-ro](https://discuss.elastic.co/u/mar-ro)\
**Replies:** 2\
**Last updated:** [April 28, 2021, 11:30am UTC](https://discuss.elastic.co/t/elasticapm-alternative-to-enabled-environments-with-ruby-apm-agent/271498 "2021-04-28T11:30:13Z")

</div>

If you are asking about a problem you are experiencing, please use the following template, as it will help us help you. If you have a different problem, please delete all of this text :slight\_smile: TIP 1: select at lea…

---

## [Running RUM over HTTPS](https://discuss.elastic.co/t/running-rum-over-https/268035)

<div class="topic-metadata">

**Author:** [@macaulaysouza](https://discuss.elastic.co/u/macaulaysouza)\
**Replies:** 1\
**Last updated:** [March 30, 2021, 11:24pm UTC](https://discuss.elastic.co/t/running-rum-over-https/268035 "2021-03-30T23:24:21Z")

</div>

I'm configuring a new APM server and I already have a Ruby Agent running on my backend. Now I'm trying to setup a frontend monitor and I came across with RUM JS. All my application runs over HTTPS so becuase of that, I'…

---

## [Elastic APM Rails not sending request data](https://discuss.elastic.co/t/elastic-apm-rails-not-sending-request-data/268403)

<div class="topic-metadata">

**Author:** [@Doug\_DeBold](https://discuss.elastic.co/u/Doug_DeBold)\
**Replies:** 0\
**Last updated:** [March 25, 2021, 6:54pm UTC](https://discuss.elastic.co/t/elastic-apm-rails-not-sending-request-data/268403 "2021-03-25T18:54:04Z")

</div>

Kibana version: 7.11.1 Elasticsearch version: 1.11.1 APM Server version: 7.10.2 APM Agent language and version: Ruby, elastic-apm @ 3.13.0 Browser version: N/A Original install method (e.g. download page, yum, deb, …

---

## [Elastic-apm-agent Ruby v3.13.0+](https://discuss.elastic.co/t/elastic-apm-agent-ruby-v3-13-0/266856)

<div class="topic-metadata">

**Author:** [@willis](https://discuss.elastic.co/u/willis)\
**Replies:** 0\
**Last updated:** [March 10, 2021, 6:37pm UTC](https://discuss.elastic.co/t/elastic-apm-agent-ruby-v3-13-0/266856 "2021-03-10T18:37:10Z")

</div>

Hi! I am not sure if this is the right place to ask this, but when is the next release of elastic/apm-agent -ruby planned? There was a fix applied last month to master that would help us out greatly if we could get the …

---

## [APM Agent Settings Kibana Not Applying](https://discuss.elastic.co/t/apm-agent-settings-kibana-not-applying/261841)

<div class="topic-metadata">

**Author:** [@willis](https://discuss.elastic.co/u/willis)\
**Replies:** 3\
**Last updated:** [January 25, 2021, 2:27pm UTC](https://discuss.elastic.co/t/apm-agent-settings-kibana-not-applying/261841 "2021-01-25T14:27:53Z")

</div>

Kibana version: 7.9.2 Elasticsearch version: 7.9.2 APM Server version: 7.9.2 APM Agent language and version: Ruby, 3.13.0 \*\* Problem \*\* I am looking to use the Kibana APM Agent remote configuration to manage a R…

---

## [Elastic APM agent on Ruby on Rails elastic-apm gem not found error](https://discuss.elastic.co/t/elastic-apm-agent-on-ruby-on-rails-elastic-apm-gem-not-found-error/258996)

<div class="topic-metadata">

**Author:** [@renu\_jessi](https://discuss.elastic.co/u/renu_jessi)\
**Replies:** 0\
**Last updated:** [December 17, 2020, 1:07pm UTC](https://discuss.elastic.co/t/elastic-apm-agent-on-ruby-on-rails-elastic-apm-gem-not-found-error/258996 "2020-12-17T13:07:25Z")

</div>

Hi Team, iam trying to install apm agent on ruby on rails agent..iam getting below error pls help me. \[ERROR\] 2020-12-17 18:31:15.947 \[main\] Logstash - java.lang.IllegalStateException: Logstash stopped processing becau…

---

## [APM transaction timeline without spans](https://discuss.elastic.co/t/apm-transaction-timeline-without-spans/258299)

<div class="topic-metadata">

**Author:** [@valecavallaro](https://discuss.elastic.co/u/valecavallaro)\
**Replies:** 1\
**Last updated:** [December 14, 2020, 5:30pm UTC](https://discuss.elastic.co/t/apm-transaction-timeline-without-spans/258299 "2020-12-14T17:30:33Z")

</div>

Hello there! We have set up ruby APM integration with a Rails application, and we are having an issue that I can't find why it's happening. Kibana version: 7.3.0 Elasticsearch version: 7.3.0 APM Server version: 7.3.…

---

## [Distributed traces on background jobs](https://discuss.elastic.co/t/distributed-traces-on-background-jobs/256555)

<div class="topic-metadata">

**Author:** [@brightredchilli](https://discuss.elastic.co/u/brightredchilli)\
**Replies:** 3\
**Last updated:** [November 25, 2020, 11:28am UTC](https://discuss.elastic.co/t/distributed-traces-on-background-jobs/256555 "2020-11-25T11:28:58Z")

</div>

Hi, a question prodding feasability of getting distributed traces on asynchronous jobs. In my (Rails) application, web requests kick off background jobs that are processed in Sidekiq. I see the Sidekiq transaction and th…

---

## [Ruby on Rails APM agent isn't sending data to ELK server](https://discuss.elastic.co/t/ruby-on-rails-apm-agent-isnt-sending-data-to-elk-server/248416)

<div class="topic-metadata">

**Author:** [@MarkMichuda](https://discuss.elastic.co/u/MarkMichuda)\
**Replies:** 3\
**Last updated:** [September 15, 2020, 1:03pm UTC](https://discuss.elastic.co/t/ruby-on-rails-apm-agent-isnt-sending-data-to-elk-server/248416 "2020-09-15T13:03:29Z")

</div>

Kibana version : 7.8.0 Elasticsearch version : 7.8.0 APM Server version : 7.8.0 APM Gem Version : elastic-apm (0.4.3) Ruby Version : ruby 2.1.2p95 We're using ELK open source monitoring for our infra. APM monitoring…

---

## [Elastic Ruby on Rails APM: Queue is full issue](https://discuss.elastic.co/t/elastic-ruby-on-rails-apm-queue-is-full-issue/246793)

<div class="topic-metadata">

**Author:** [@rahulnama](https://discuss.elastic.co/u/rahulnama)\
**Replies:** 3\
**Last updated:** [August 31, 2020, 8:49pm UTC](https://discuss.elastic.co/t/elastic-ruby-on-rails-apm-queue-is-full-issue/246793 "2020-08-31T20:49:49Z")

</div>

Hi Team I'm using APM version: 7.8.0 for ruby on rails app. I integrated this with prod and dev. However, for some reason I'm not able to see recent requests for prod site. Here are the logs in my app. I see queue is …

---

## [Sidekiq workers that sync data to salesforce failing after setting up ruby agent on my app](https://discuss.elastic.co/t/sidekiq-workers-that-sync-data-to-salesforce-failing-after-setting-up-ruby-agent-on-my-app/244100)

<div class="topic-metadata">

**Author:** [@jaysan](https://discuss.elastic.co/u/jaysan)\
**Replies:** 0\
**Last updated:** [August 6, 2020, 10:20pm UTC](https://discuss.elastic.co/t/sidekiq-workers-that-sync-data-to-salesforce-failing-after-setting-up-ruby-agent-on-my-app/244100 "2020-08-06T22:20:42Z")

</div>

Hello, After I adding ruby agent on my app, my sidekiq workers that sync data to salesforce are throwing the following exception: bad argument (expected URI object or URI string) I know the error message is not very h…

---

## [Is it possible to disable sending metrics for specific transactions/endpoints?](https://discuss.elastic.co/t/is-it-possible-to-disable-sending-metrics-for-specific-transactions-endpoints/239205)

<div class="topic-metadata">

**Author:** [@adnanrh](https://discuss.elastic.co/u/adnanrh)\
**Replies:** 0\
**Last updated:** [June 30, 2020, 12:18am UTC](https://discuss.elastic.co/t/is-it-possible-to-disable-sending-metrics-for-specific-transactions-endpoints/239205 "2020-06-30T00:18:00Z")

</div>

If you are asking about a problem you are experiencing, please use the following template, as it will help us help you. If you have a different problem, please delete all of this text :slight\_smile: Kibana version : 7.6…

---

## [Is it possible to get stack trace info on SQL spans from ruby agents?](https://discuss.elastic.co/t/is-it-possible-to-get-stack-trace-info-on-sql-spans-from-ruby-agents/235829)

<div class="topic-metadata">

**Author:** [@adnanrh](https://discuss.elastic.co/u/adnanrh)\
**Replies:** 2\
**Last updated:** [June 30, 2020, 12:12am UTC](https://discuss.elastic.co/t/is-it-possible-to-get-stack-trace-info-on-sql-spans-from-ruby-agents/235829 "2020-06-30T00:12:15Z")

</div>

If you are asking about a problem you are experiencing, please use the following template, as it will help us help you. If you have a different problem, please delete all of this text :slight\_smile: Kibana version: 7.6…

---

## [\[ElasticAPM\] The limit of 1000 metricsets has been reached, no new metricsets will be created](https://discuss.elastic.co/t/elasticapm-the-limit-of-1000-metricsets-has-been-reached-no-new-metricsets-will-be-created/236729)

<div class="topic-metadata">

**Author:** [@maxymvlasov](https://discuss.elastic.co/u/maxymvlasov)\
**Replies:** 1\
**Last updated:** [June 17, 2020, 1:47pm UTC](https://discuss.elastic.co/t/elasticapm-the-limit-of-1000-metricsets-has-been-reached-no-new-metricsets-will-be-created/236729 "2020-06-17T13:47:27Z")

</div>

Elasticsearch version: 7.7.1 APM Server version: 7.6.2 APM Agent language and version: Ruby elastic-apm (3.7.0) concurrent-ruby (~\> 1.0) http (\>= 3.0) Description of the problem including expected versus actual …

---

## [Issues with Ruby elastic-apm gem when used with Grape](https://discuss.elastic.co/t/issues-with-ruby-elastic-apm-gem-when-used-with-grape/235881)

<div class="topic-metadata">

**Author:** [@alilland](https://discuss.elastic.co/u/alilland)\
**Replies:** 1\
**Last updated:** [June 8, 2020, 11:16am UTC](https://discuss.elastic.co/t/issues-with-ruby-elastic-apm-gem-when-used-with-grape/235881 "2020-06-08T11:16:51Z")

</div>

Im getting an error message NameError: uninitialized constant ElasticAPM::Grape it looks like there is a check for if constants exist, so the below should not have reported nil according to line 46 on this file https://…

---

## [Time spent by span type emtpy](https://discuss.elastic.co/t/time-spent-by-span-type-emtpy/233904)

<div class="topic-metadata">

**Author:** [@aleksclark](https://discuss.elastic.co/u/aleksclark)\
**Replies:** 1\
**Last updated:** [May 25, 2020, 1:13am UTC](https://discuss.elastic.co/t/time-spent-by-span-type-emtpy/233904 "2020-05-25T01:13:17Z")

</div>

Kibana version: 7.5.0 Elasticsearch version: 7.5.0 APM Server version: 7.5.0 APM Agent language and version: Ruby/elastic-apm 3.1.0 Browser version: Chrome Original install method (e.g. download page, yum, deb, from…

---

## [Stop monkey patch \`Kernel#require\`](https://discuss.elastic.co/t/stop-monkey-patch-kernel-require/232012)

<div class="topic-metadata">

**Author:** [@v-kolesnikov](https://discuss.elastic.co/u/v-kolesnikov)\
**Replies:** 0\
**Last updated:** [May 11, 2020, 12:47pm UTC](https://discuss.elastic.co/t/stop-monkey-patch-kernel-require/232012 "2020-05-11T12:47:44Z")

</div>

APM Agent language and version: Ruby gem elastic-apm 3.6.0 Steps to reproduce: # frozen\_string\_literal: true require 'bundler/inline' gemfile do source 'https://rubygems.org' gem 'rack', '~\> 2.0', require: false …

---

## [Finer trace of method calls in Rails](https://discuss.elastic.co/t/finer-trace-of-method-calls-in-rails/219255)

<div class="topic-metadata">

**Author:** [@markus\_muehlberger](https://discuss.elastic.co/u/markus_muehlberger)\
**Replies:** 1\
**Last updated:** [February 13, 2020, 8:22pm UTC](https://discuss.elastic.co/t/finer-trace-of-method-calls-in-rails/219255 "2020-02-13T20:22:04Z")

</div>

I'm fairly new to Elastic APM and we're using it to keep the data within our infrastructure. We're tracking some performance issues in our Rails app at the moment and the reporting of Rails controller actions as transac…

[Next page](https://discuss.elastic.co/tag/ruby/35.md?match_all_tags=true&page=1&tags%5B%5D=ruby)
