-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat support opentelemetry metrics (#38)
Signed-off-by: EdmondFrank <[email protected]>
- Loading branch information
1 parent
d9ea24d
commit 1c40279
Showing
6 changed files
with
214 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,3 +118,8 @@ export NOTIFICATION_WECHAT_REPORT_SUBSCRIPTION_UPDATE_TEMPLATE_ID=OPENTM41261210 | |
export BOT_NAME=compass-bot | ||
export BOT_EMAIL=[email protected] | ||
|
||
# OpenTelemetry | ||
export OTEL_EXPORTER=otlp | ||
export OTEL_SERVICE_NAME=CompassSAAS | ||
export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 | ||
export OTEL_RESOURCE_ATTRIBUTES=application=compass-web-service |
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 |
---|---|---|
@@ -1,5 +1,10 @@ | ||
# Load the Rails application. | ||
require 'opentelemetry/sdk' | ||
require_relative "application" | ||
|
||
OpenTelemetry::SDK.configure do |c| | ||
c.use_all | ||
end | ||
|
||
# Initialize the Rails application. | ||
Rails.application.initialize! |
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