lib/elastic_apm/transport/headers.rb in elastic-apm-3.3.0 vs lib/elastic_apm/transport/headers.rb in elastic-apm-3.4.0
- old
+ new
@@ -53,9 +53,13 @@
if (token = @config.secret_token)
headers[:Authorization] = "Bearer #{token}"
end
+ if (api_key = @config.api_key)
+ headers[:Authorization] = "ApiKey #{api_key}"
+ end
+
headers
end
end
end
end