Skip to content

Commit

Permalink
feat: Inject sentry tracing information for rendered HTML
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Jul 4, 2024
1 parent d5d7a4e commit 277da57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ public function boot(IBootContext $context): void {
'traces_sample_rate' => $config->getSamplingRate(),
'profiles_sample_rate' => $config->getProfilesSamplingRate(),
]);

\OC_Util::addHeader('meta', ['name' => 'baggage', 'content' => \Sentry\getBaggage()]);

Check failure on line 80 in lib/AppInfo/Application.php

View workflow job for this annotation

GitHub Actions / Nextcloud dev-master

UndefinedClass

lib/AppInfo/Application.php:80:5: UndefinedClass: Class, interface or enum named OC_Util does not exist (see https://psalm.dev/019)

Check failure on line 80 in lib/AppInfo/Application.php

View workflow job for this annotation

GitHub Actions / Nextcloud dev-stable27

UndefinedClass

lib/AppInfo/Application.php:80:5: UndefinedClass: Class, interface or enum named OC_Util does not exist (see https://psalm.dev/019)

Check failure on line 80 in lib/AppInfo/Application.php

View workflow job for this annotation

GitHub Actions / Nextcloud dev-stable24

UndefinedClass

lib/AppInfo/Application.php:80:5: UndefinedClass: Class, interface or enum named OC_Util does not exist (see https://psalm.dev/019)
\OC_Util::addHeader('meta', ['name' => 'sentry-trace', 'content' => \Sentry\getTraceparent()]);
}
});
}
Expand Down

0 comments on commit 277da57

Please sign in to comment.