-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
THREESCALE-9682: Add support for OpenTelemetry (#405)
* Install OpenTelemetry gems * Add support for OpenTelemetry * Add env var to enable otel `CONFIG_OPENTELEMETRY_ENABLED` --------- Co-authored-by: Eguzki Astiz Lezaun <[email protected]>
- Loading branch information
Showing
7 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
require 'opentelemetry/sdk' | ||
require 'opentelemetry/instrumentation/sinatra' | ||
require 'opentelemetry-exporter-otlp' | ||
require '3scale/backend/configuration' | ||
|
||
OpenTelemetry::SDK.configure do |c| | ||
c.service_name = '3scale-backend' | ||
c.use 'OpenTelemetry::Instrumentation::Sinatra' | ||
end if ThreeScale::Backend.configuration.opentelemetry.enabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
require '3scale/backend/util' | ||
require '3scale/backend/opentelemetry' | ||
|
||
module ThreeScale | ||
module Backend | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters