v0.2.0 #4
plunkettscott
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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 attachenduser.*
metadata to spans for HTTP requests. ADefaultUserResolver
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
EventWatcher
is now available, which adds span events for all non-Laravel events dispatched in the application throughout a trace.Schedule Watcher
The
ScheduleWatcher
is now available, which creates spans for scheduled tasks executed as part of theschedule:run
command.Queue Watcher
The
QueueWatcher
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. TheTraceAware
contract can opt-in individual jobs If OpenTelemetry for Laravel is configured to not trace jobs by default.Redis Watcher
The
RedisWatcher
is now available, which creates spans for each Redis command executed by the application.Full Changelog: v0.1.2...v0.2.0
Notes
If you're using this package already, be sure to update your configuration file in
config/otel.php
to include the latest options.This discussion was created from the release v0.2.0.
Beta Was this translation helpful? Give feedback.
All reactions