Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit de48ec9

Browse files
OrGeva10gitbook-bot
authored andcommitted
GitBook: [#157] No subject
1 parent cfa6e4c commit de48ec9

File tree

1 file changed

+0
-37
lines changed
  • send-tracing-data-to-aspecto/aspecto-sdk

1 file changed

+0
-37
lines changed

send-tracing-data-to-aspecto/aspecto-sdk/ruby.md

-37
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ Or, if you use [bundler](https://bundler.io), include aspecto-opentelemetry in y
2222

2323
#### Rails Applications
2424

25-
**Configuration in Code**
26-
2725
Add this code to a new file `aspecto.rb` under `config/initializers/`:
2826

2927
```
@@ -37,26 +35,8 @@ Aspecto::OpenTelemetry::configure do |c|
3735
end
3836
```
3937

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-
5638
#### Ruby Applications
5739

58-
**Configuration in Code**
59-
6040
Add this code after your require other gems:
6141

6242
```
@@ -70,23 +50,6 @@ Aspecto::OpenTelemetry::configure do |c|
7050
end
7151
```
7252

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-
9053
#### Shutdown
9154

9255
Call this function when your application shuts down

0 commit comments

Comments
 (0)