Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 268ecc4

Browse files
authored
Update README.md
1 parent b16d063 commit 268ecc4

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

README.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,6 @@
55

66
This package provides a simple way to add OpenTelemetry to your Laravel application.
77

8-
## ⚠️ Breaking Changes in Recent Versions
9-
10-
**SpanBuilder API Changes**: The `SpanBuilder::start()` method behavior has been updated for better safety and predictability:
11-
12-
- **Before**: `start()` automatically activated the span's scope, which could cause issues in async scenarios
13-
- **Now**: `start()` only creates the span without activating its scope (safer default behavior)
14-
- **Migration**: If you need the old behavior, use `startAndActivate()` instead of `start()`
15-
16-
```php
17-
// Old code (if you need scope activation)
18-
$span = Measure::span('my-operation')->start(); // This now returns SpanInterface
19-
20-
// New code (for scope activation)
21-
$startedSpan = Measure::span('my-operation')->startAndActivate(); // Returns StartedSpan
22-
```
23-
24-
For most use cases, the new `start()` behavior is safer and recommended. See the [Advanced Span Creation](#advanced-span-creation-with-spanbuilder) section for detailed usage patterns.
25-
268
## Features
279

2810
-**Zero Configuration**: Works out of the box with sensible defaults.

0 commit comments

Comments
 (0)