Skip to content

Commit 64d0749

Browse files
committed
Use Sentry only in production
1 parent b95fe4f commit 64d0749

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/views/layouts/application.html.erb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
<%# Includes all stylesheet files in app/assets/stylesheets %>
1717
<%= stylesheet_link_tag :app, "data-turbo-track": "reload" %>
1818
<%= javascript_importmap_tags %>
19-
<%= Sentry.get_trace_propagation_meta.html_safe %>
19+
<% if Rails.env.production? %>
20+
<%= Sentry.get_trace_propagation_meta.html_safe %>
21+
<% end %>
2022
</head>
2123

2224
<body>
@@ -29,7 +31,7 @@
2931
<% end %>
3032
</div>
3133
<% end %>
32-
34+
3335
<%= yield %>
3436
</body>
3537
</html>

0 commit comments

Comments
 (0)