Skip to content

Commit 2b33f1b

Browse files
committed
Datadog
1 parent f43ad89 commit 2b33f1b

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

app/controllers/application_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11

22
class ApplicationController < ActionController::API
3-
3+
44

55

66
def index
77
render json: { message: "successful", status: 200 }
88
end
99

1010
def get_current_user
11-
jwt_token = request.headers['HTTP_AUTHORIZATION'] # .gsub('Bearer ', '')
11+
jwt_token = request.headers['HTTP_AUTHORIZATION']
1212

1313
if jwt_token
1414
user_info = Auth.decode(jwt_token)

config/environments/development.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Rails.application.configure do
22
# Settings specified here will take precedence over those in config/application.rb.
3+
Datadog.configure { |c| c.analytics_enabled = true }
34

45
# In the development environment your application's code is reloaded on
56
# every request. This slows down response time but is perfect for development
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Datadog.configure do |c|
2+
c.use :rails, service_name: 'my-rails-app'
3+
end
4+
5

0 commit comments

Comments
 (0)