Skip to content

Commit 4c2e0da

Browse files
Tags should not be set on enterprise (#1347)
* Tags should not be set when on enterprise
1 parent 224a60d commit 4c2e0da

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/travis/api/app.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def initialize(options = {})
114114
use Rack::Config do |env|
115115
if env['HTTP_X_REQUEST_ID']
116116
Sentry.with_scope do |scope|
117-
scope.set_tags(request_id: env['HTTP_X_REQUEST_ID'])
117+
scope.set_tags(request_id: env['HTTP_X_REQUEST_ID']) unless enterprise?
118118
end
119119
end
120120
end
@@ -194,6 +194,10 @@ def call(env)
194194

195195
private
196196

197+
def enterprise?
198+
!!Travis.config.enterprise
199+
end
200+
197201
def self.console?
198202
defined? Travis::Console
199203
end

0 commit comments

Comments
 (0)