Skip to content

Commit

Permalink
Merge pull request #8 from middleware-labs/arjun/eng-3134-ruby
Browse files Browse the repository at this point in the history
ENG-3134: Updated profiling url for v2 support.
  • Loading branch information
bhogayatakb authored Jun 21, 2024
2 parents 39a0af4 + 7bf17b9 commit 9d26506
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 9d26506

Please sign in to comment.