instana / ruby-sensor

💎 Ruby Distributed Tracing & Metrics Sensor for Instana
https://www.instana.com/
MIT License
26 stars 25 forks source link

Allow for INSTANA_ACTIVATE_SET to select the instrumentations to be loaded #240

Closed hmadison closed 3 years ago

hmadison commented 3 years ago

If INSTANA_ACTIVATE_SET is present in the process environment, it will cause the library to only load the instrumentations listed. For example env INSTANA_ACTIVATE_SET=rack,net_http bundle exec rails s will only load the Rack and Net::HTTP instrumentations and skip all of the Rails ones.

For all possible instrumentations see the list below:

Instrumentation List ``` action_cable action_controller_api action_controller_base action_view active_record aws_sdk_dynamodb aws_sdk_s3 aws_sdk_sns aws_sdk_sqs cuba dalli excon graphql grpc_client grpc_server net_http rack rails redis resque_client resque_worker rest_client roda shoryuken sidekiq_client sidekiq_worker sinatra ```