OperationOrigin
class OperationOrigin
Resolve operation origins through one shared context-key identity.
OpenTelemetry compares custom context keys by object identity, so the container must supply the same instance to every producer and resolver.
Constants
| REQUEST |
|
| JOB |
|
| CONSOLE |
|
| SCHEDULE |
|
| WEBSOCKET |
|
| RPC |
|
| PROCESS |
|
Properties
| protected ContextKeyInterface | $key |
Methods
__construct()
Create an operation-origin resolver.
ContextInterface
withOrigin(ContextInterface $context, string $origin)
Store an operation origin in an OpenTelemetry context.
string|null
resolve(ContextInterface $context, ProcessIdentity|null $identity = null)
Resolve the truthful operation origin available to an exception report.
Details
at line 41
__construct()
Create an operation-origin resolver.
at line 49
ContextInterface
withOrigin(ContextInterface $context, string $origin)
Store an operation origin in an OpenTelemetry context.
at line 57
string|null
resolve(ContextInterface $context, ProcessIdentity|null $identity = null)
Resolve the truthful operation origin available to an exception report.