All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Unpinned absinthe patch version in order to not downgrade it when this package is required
- included errors in graphql telemetry events
- dispatch telemetry events for the handling of graphql requests
- absinthe is now a required dependency. The library failed to compile since version 2.0.0 with it being optional so this is not a breaking change.
- attribute keys are now atoms, which should offer minor performance improvements.
- loosened the telemetry version requirement from
~> 0.4 or ~> 1.0.0
to~> 0.4 or ~> 1.0
2.0.0 - 2023-03-07
- new
trace_request_selections
option to enable tracing root level GraphQL selections, which will be stored undergraphql.request.selections
. - attribute
graphql.operation.name
was added. - attribute
graphql.operation.type
was added. - span_name can now be set to
:dynamic
, causing it to be set dynamically based on the operation type and name, as recommended by opentelemetry.
-
BREAKING:
graphql.request.query
was renamed tographql.document
. -
BREAKING: the default value of span_name is now
:dynamic
-
BREAKING: opentelemetry_absinthe will no longer log sensitive information by default. By default the graphql.request.variables, graphql.response.errors and graphql.response.result attributes will no longer be emited. The previous behavior can be restored by setting the opentelemetry_absinthe configuration options.
-
OpentelemetryAbsinthe.setup
can now optionally recieve the configuration. PreviouslyOpentelemetryAbsinthe.Instrumentation.setup
had to be used.
- setting the span name to a static string.
1.1.0 - 2022-09-21
- opentelemetry_absinthe does not set opentelemetry-related Logger metadata anymore, because The OpenTelemetry API/SDK itself does that automatically since 1.1.0. If you're upgrading to opentelemetry_absinthe 1.1.0, it is therefore recommended to also upgrade to OpenTelemetry API 1.1.0 in order to keep the opentelemetry log metadata.