@@ -22,8 +22,6 @@ Or, if you use [bundler](https://bundler.io), include aspecto-opentelemetry in y
22
22
23
23
#### Rails Applications
24
24
25
- ** Configuration in Code**
26
-
27
25
Add this code to a new file ` aspecto.rb ` under ` config/initializers/ ` :
28
26
29
27
```
@@ -37,26 +35,8 @@ Aspecto::OpenTelemetry::configure do |c|
37
35
end
38
36
```
39
37
40
- ** Configuration via Environment Variables**
41
-
42
- In your Gemfile:
43
-
44
- ```
45
- gem 'aspecto-opentelemetry', require: 'aspecto/auto_instrument'
46
- ```
47
-
48
- And set environment variables:
49
-
50
- ```
51
- OTEL_SERVICE_NAME=<YOUR_SERVICE_NAME>
52
- ASPECTO_AUTH=<YOUR_ASPECTO_TOKEN>
53
- # ASPECTO_SAMPLING_RATIO=1.0 # [optional]: defaults to 1.0, use aspecto app to configure remotely
54
- ```
55
-
56
38
#### Ruby Applications
57
39
58
- ** Configuration in Code**
59
-
60
40
Add this code after your require other gems:
61
41
62
42
```
@@ -70,23 +50,6 @@ Aspecto::OpenTelemetry::configure do |c|
70
50
end
71
51
```
72
52
73
- ** Configuration via Environment Variables**
74
-
75
- Add this require statement after your require other gems:
76
-
77
- ```
78
- require 'aspecto/auto_instrument'
79
- ```
80
-
81
- And set environment variables:
82
-
83
- ```
84
- OTEL_SERVICE_NAME=<YOUR_SERVICE_NAME>
85
- ASPECTO_AUTH=<YOUR_ASPECTO_TOKEN>
86
- # ASPECTO_ENV=<CURRENT_ENVIRONMENT> # [optional]: automatically detected for rails and sinatra
87
- # ASPECTO_SAMPLING_RATIO=1.0 # [optional]: defaults to 1.0, use aspecto app to configure remotely
88
- ```
89
-
90
53
#### Shutdown
91
54
92
55
Call this function when your application shuts down
0 commit comments