You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 5, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+22-14Lines changed: 22 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,24 +10,29 @@ This package provides a simple way to add [OpenTelemetry](https://opentelemetry.
10
10
11
11
## 🎯 Package Positioning
12
12
13
-
### vs Official Auto-Instrumentation Package
13
+
### Built on Official Auto-Instrumentation
14
14
15
-
-**[Official Package](https://packagist.org/packages/open-telemetry/opentelemetry-auto-laravel)**: Automatic instrumentation using hooks, zero code changes required
16
-
-**This Package**: Manual instrumentation with Laravel-style APIs, providing fine-grained control and additional features
15
+
This package is **built on top of** the official [`open-telemetry/opentelemetry-auto-laravel`](https://packagist.org/packages/open-telemetry/opentelemetry-auto-laravel) package, providing additional manual instrumentation capabilities.
16
+
17
+
### Package Relationship
18
+
19
+
-**[Official Package](https://packagist.org/packages/open-telemetry/opentelemetry-auto-laravel)**: Foundation auto-instrumentation (automatically installed as dependency)
20
+
-**This Package**: Additional manual instrumentation with Laravel-style APIs and enhanced features
17
21
18
22
### When to Use This Package
19
23
20
-
- ✅ Need precise control over span attributes and lifecycle
21
-
- ✅ Want to integrate deeply with Laravel events and services
24
+
- ✅ Need both automatic AND manual instrumentation
25
+
- ✅ Want precise control over span attributes and lifecycle
26
+
- ✅ Need to integrate deeply with Laravel events and services
22
27
- ✅ Prefer explicit instrumentation with Laravel facades
23
28
- ✅ Need custom watchers and middleware
24
29
- ✅ Building complex tracing scenarios
25
30
26
-
### When to Use Official Auto-Instrumentation
31
+
### When to Use Official Package Only
27
32
28
-
- ✅ Want zero-code instrumentation
33
+
- ✅ Want zero-code instrumentation only
29
34
- ✅ Need basic request/response tracing
30
-
- ✅ Prefer automatic framework detection
35
+
- ✅ Prefer minimal setup
31
36
32
37
## Installation
33
38
@@ -135,20 +140,23 @@ OTEL_ENABLED=false
135
140
OTEL_TRACES_EXPORTER=none
136
141
```
137
142
138
-
### Alternative: Official Auto-Instrumentation Setup
143
+
### Official Auto-Instrumentation Configuration
139
144
140
-
If you prefer automatic instrumentation (requires `ext-opentelemetry` and official auto package):
0 commit comments