README.md in aspecto-opentelemetry-0.1.9 vs README.md in aspecto-opentelemetry-0.1.10

- old
+ new

@@ -17,12 +17,10 @@ ## Usage ### Rails Applications -#### Configuration in Code - Add this code to a new file `aspecto.rb` under `config/initializers/`: ```rb # config/initializers/aspecto.rb require 'aspecto/opentelemetry' @@ -32,30 +30,12 @@ c.aspecto_auth = '<YOUR_ASPECTO_TOKEN>' # c.sampling_ratio = 1.0 # [optional]: defaults to 1.0, use aspecto app to configure remotely end ``` -#### Configuration via Environment Variables - -In your Gemfile: - -``` -gem 'aspecto-opentelemetry', require: 'aspecto/auto_instrument' -``` - -And set environment variables: - -``` -OTEL_SERVICE_NAME=<YOUR_SERVICE_NAME> -ASPECTO_AUTH=<YOUR_ASPECTO_TOKEN> -# ASPECTO_SAMPLING_RATIO=1.0 # [optional]: defaults to 1.0, use aspecto app to configure remotely -``` - ### Ruby Applications -#### Configuration in Code - Add this code after your require other gems: ```rb require 'aspecto/opentelemetry' @@ -63,26 +43,9 @@ c.service_name = '<YOUR_SERVICE_NAME>' c.aspecto_auth = '<YOUR_ASPECTO_TOKEN>' # c.env = '<CURRENT_ENVIRONMENT>' # [optional]: automatically detected for rails and sinatra # c.sampling_ratio = 1.0 # [optional]: defaults to 1.0, use aspecto app to configure remotely end -``` - -#### Configuration via Environment Variables - -Add this require statement after your require other gems: - -```rb -require 'aspecto/auto_instrument' -``` - -And set environment variables: - -``` -OTEL_SERVICE_NAME=<YOUR_SERVICE_NAME> -ASPECTO_AUTH=<YOUR_ASPECTO_TOKEN> -# ASPECTO_ENV=<CURRENT_ENVIRONMENT> # [optional]: automatically detected for rails and sinatra -# ASPECTO_SAMPLING_RATIO=1.0 # [optional]: defaults to 1.0, use aspecto app to configure remotely ``` ### Shutdown Call this function when your application shuts down