v0.2.0
What's Changed
The following changes are included in this release:
UserResolver
OpenTelemetry for Laravel now includes a UserResolver contract that may be implemented to attach enduser.* metadata to spans for HTTP requests. A DefaultUserResolver is included and enabled by default, this resolver will add the User's ID along with any scopes granted via Passport or abilities granted via Sanctum.
You may use your own resolver by modifying the configuration file to point to a class that implements the PlunkettScott\LaravelOpenTelemetry\Resolvers\Contracts\UserResolver contract.
Event Watcher
The Event Watcher is now available, which adds span events for all non-Laravel events dispatched in the application throughout a trace.
Schedule Watcher
The Schedule Watcher is now available, which creates spans for scheduled tasks executed as part of the schedule:run command.
Queue Watcher
The Queue Watcher is now available, which creates spans for each attempt of queued jobs and listeners. If a job fails due, the span will record the exception and be marked with an error status.
By default, all jobs are traced. If you want to disable tracing for a Job you may implement the NotTraceAware contract. The TraceA ware contract can opt-in individual jobs If OpenTelemetry for Laravel is configured to not trace jobs by default.
Redis Watcher
The Redis Watcher is now available, which creates spans for each Redis command executed by the application.
Full Changelog: v0.1.2...v0.2.0