-
Notifications
You must be signed in to change notification settings - Fork 529
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
telemetry_span_context
following conventions (#1128)
Absinthe's telemetry events includes `id` metadata, as means to correlate start/stop/exception events. Telemetry defines a `telemetry_span_context` for this same reasons. This patch publishes the same `id` value as both keys, sowe maintain backwards compatibility as well keep adherent to conventions, for tools that rely on that - like OpenTelemetry. The `telemetry_span_context` is generated using `:erlang.make_ref/0`. Given typespecs describe as `term`, should be safe to use the same value as `id`.
- Loading branch information
Showing
3 changed files
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters