From 7581115bf9a7d64111cba2ae5616769acaec0f06 Mon Sep 17 00:00:00 2001
From: Michael Hoffmann
Date: Wed, 5 Oct 2022 13:42:18 +0200
Subject: [PATCH 1/7] Add baggage to Laravel
---
.../php/guides/laravel/performance/connect-services.mdx | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/platforms/php/guides/laravel/performance/connect-services.mdx b/src/platforms/php/guides/laravel/performance/connect-services.mdx
index b2d5ef55290ed..23307f34dcf98 100644
--- a/src/platforms/php/guides/laravel/performance/connect-services.mdx
+++ b/src/platforms/php/guides/laravel/performance/connect-services.mdx
@@ -4,17 +4,18 @@ sidebar_order: 40
description: "Learn how to connect backend and frontend transactions."
---
-If you are also using Performance Monitoring for [JavaScript](/platforms/javascript/performance/) you can use a helper function to continue the trace started from your backend in order to [connect services](/platforms/javascript/performance/connect-services/#navigation-and-other-xhr-requests).
-Add the following line to your blade template rendering the `` of your page:
+If you are also using Performance Monitoring for [JavaScript](/platforms/javascript/performance/) you can use helper functions to continue the trace as well as the Dynamic Sampling Context, which contains additional trace-related data that is used for trace-based sampling, started from your backend in order to [connect services](/platforms/javascript/performance/connect-services/#navigation-and-other-xhr-requests).
+Add the following lines to your blade template rendering the `
` of your page:
```php {filename:app.blade.php}
...
{!! \Sentry\Laravel\Integration::sentryTracingMeta() !!}
+{!! \Sentry\Laravel\Integration::sentryTracingMeta() !!}
...
```
-This helper function will render a meta tag similar to this ``, which our JavaScript SDK will pick up and continue the trace. Therefore, your frontend and your backend are connected by way of the same trace.
+These helper functions will render two meta tags similar to `` and ` of your page:
```php {filename:app.blade.php}
From 9541e287eec72f03c550317ee6d4aacb8547b620 Mon Sep 17 00:00:00 2001
From: Michi Hoffmann
Date: Wed, 5 Oct 2022 20:09:25 +0200
Subject: [PATCH 5/7] Update
src/platforms/php/guides/laravel/performance/connect-services.mdx
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
---
.../php/guides/laravel/performance/connect-services.mdx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/platforms/php/guides/laravel/performance/connect-services.mdx b/src/platforms/php/guides/laravel/performance/connect-services.mdx
index ad5397e1f4f79..d9aa069ded626 100644
--- a/src/platforms/php/guides/laravel/performance/connect-services.mdx
+++ b/src/platforms/php/guides/laravel/performance/connect-services.mdx
@@ -16,6 +16,7 @@ Add the following lines to your blade template rendering the `` of your p
```
-These helper functions will render two meta tags similar to `` and ` and `` of your page:
+If you're also using Performance Monitoring for [JavaScript](/platforms/javascript/performance/), you can use a helper function to continue the trace and propagate the Dynamic Sampling context started from your backend in order to [connect services](/platforms/javascript/performance/connect-services/#navigation-and-other-xhr-requests). (The Dynamic Sampling context contains additional trace-related data that is used for trace-based sampling.)
+Add the following line to your blade template rendering the `
` of your page:
```php {filename:app.blade.php}
...
-{!! \Sentry\Laravel\Integration::sentryTracingMeta() !!}
-{!! \Sentry\Laravel\Integration::sentryBaggageMeta() !!}
+{!! \Sentry\Laravel\Integration::sentryMeta() !!}
...
```
-These helper functions will render two meta tags similar to `` and `` and `