-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Restructure appsignal docs * Use rb initializer instead of yaml config * Verify installation * Document frontend implementation * Improve title * Lint
- Loading branch information
1 parent
39488da
commit c4e073b
Showing
6 changed files
with
101 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ GEM | |
|
||
PLATFORMS | ||
arm64-darwin-21 | ||
arm64-darwin-22 | ||
x86_64-linux | ||
|
||
DEPENDENCIES | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import Appsignal from '@appsignal/javascript'; | ||
|
||
export const appsignal = new Appsignal({ | ||
key: window.appsignalConfig.frontendApiKey, | ||
}); | ||
window.Appsignal = appsignal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<% if ENV['APPSIGNAL_FRONTEND_API_KEY'].present? %> | ||
<script type="application/javascript"> | ||
window.appsignalConfig = { | ||
frontendApiKey: "<%= ENV.fetch('APPSIGNAL_FRONTEND_API_KEY') %>" | ||
}; | ||
</script> | ||
|
||
<%= javascript_include_tag 'appsignal' %> | ||
<% end %> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
if defined?(Appsignal) | ||
Appsignal.configure do |config| | ||
%w[HTTP_REFERER HTTP_USER_AGENT HTTP_AUTHORIZATION REQUEST_URI].each do |header| | ||
config.request_headers << header | ||
end | ||
end | ||
end |