Skip to content

Commit

Permalink
updated profiling url for v2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
arjun-mw committed Jun 20, 2024
1 parent 39a0af4 commit 7bf17b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/middleware/profile/pyroscope_profile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ class PyroscopeProfile
def self.init
authentication = Auth::Authentication.new
return unless authentication.auth

account = authentication.get_response['data']['account']
Pyroscope.configure do |config|
config.application_name = ENV["OTEL_SERVICE_NAME"] || "default-service-name"
config.server_address = ENV["MW_PROFILING_SERVER_URL"] || "https://profiling.middleware.io"
config.tenant_id = authentication.get_response['data']['account']
config.server_address = ENV["MW_PROFILING_SERVER_URL"] || "https://#{account}.middleware.io/profiling"
config.tenant_id = account
end

MwLogger.info("Profiling started")
Expand Down
2 changes: 1 addition & 1 deletion lib/middleware/ruby_gem/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Middleware
module RubyGem
VERSION = "2.1.0"
VERSION = "2.1.1"
end
end

0 comments on commit 7bf17b9

Please sign in to comment.