From 7571606f2102932e9fc4a108edce66860a8e0c3c Mon Sep 17 00:00:00 2001 From: Cristiano Piemontese Date: Wed, 9 Oct 2024 16:33:03 +0200 Subject: [PATCH 1/2] release --- CHANGELOG.md | 60 ++++++++++++++++++++++++++++++++++------------------ 1 file changed, 40 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 790c009..a5a640f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,32 +3,42 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +and this project adheres to +[Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Changed + +- Use `opentelemetry_semantic_conventions` 1.x + --- ## [2.3.0] - 2024-05-27 ### Added -- Support custom metadata from integrators. Use `OpentelemetryAbsinthe.TelemetryMetadata` to add metadata to your context which will then be broadcast. -- Allow attaching to `[:absinthe, :subscription, :publish]` (both `:start` and `:stop`) given a `trace_subscription: true` config +- Support custom metadata from integrators. Use + `OpentelemetryAbsinthe.TelemetryMetadata` to add metadata to your context + which will then be broadcast. +- Allow attaching to `[:absinthe, :subscription, :publish]` (both `:start` and + `:stop`) given a `trace_subscription: true` config - New `graphql.event.type` trace attribute, with value `operation` or `publish` ## [2.3.0-rc.0] - 2024-04-18 ### Added -- Allow attaching to `[:absinthe, :subscription, :publish]` (both `:start` and `:stop`) given a `trace_subscription: true` config +- Allow attaching to `[:absinthe, :subscription, :publish]` (both `:start` and + `:stop`) given a `trace_subscription: true` config - New `graphql.event.type` trace attribute, with value `operation` or `publish` ## [2.2.1] - 2024-02-21 ### Changed -- Unpinned absinthe patch version in order to not downgrade it when this package is required +- Unpinned absinthe patch version in order to not downgrade it when this package + is required ## [2.2.0] - 2024-02-20 @@ -46,42 +56,52 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- 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` +- 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 ### Added -- new `trace_request_selections` option to enable tracing root level GraphQL selections, which will be stored under `graphql.request.selections`. +- new `trace_request_selections` option to enable tracing root level GraphQL + selections, which will be stored under `graphql.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](https://opentelemetry.io/docs/reference/specification/trace/semantic_conventions/instrumentation/graphql/). +- 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](https://opentelemetry.io/docs/reference/specification/trace/semantic_conventions/instrumentation/graphql/). ### Changed - BREAKING: `graphql.request.query` was renamed to `graphql.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. +- 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. Previously `OpentelemetryAbsinthe.Instrumentation.setup` had to be used. +- `OpentelemetryAbsinthe.setup` can now optionally recieve the configuration. + Previously `OpentelemetryAbsinthe.Instrumentation.setup` had to be used. ### Deprecated + - setting the span name to a static string. ## [1.1.0] - 2022-09-21 ### Changed -- opentelemetry_absinthe does not set opentelemetry-related Logger metadata anymore, because - The OpenTelemetry API/SDK itself [does that automatically since 1.1.0](https://github.com/open-telemetry/opentelemetry-erlang/pull/394). - 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. - - +- opentelemetry_absinthe does not set opentelemetry-related Logger metadata + anymore, because The OpenTelemetry API/SDK itself + [does that automatically since 1.1.0](https://github.com/open-telemetry/opentelemetry-erlang/pull/394). + 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. [Unreleased]: https://github.com/primait/opentelemetry_absinthe/compare/2.3.0...HEAD [2.3.0]: https://github.com/primait/opentelemetry_absinthe/compare/2.3.0-rc.0...2.3.0 From 5608fa2f6396767ccdf1edda1ac7aeebb3610664 Mon Sep 17 00:00:00 2001 From: Cristiano Piemontese Date: Wed, 9 Oct 2024 16:33:17 +0200 Subject: [PATCH 2/2] 2.3.1 --- CHANGELOG.md | 8 +++++++- mix.exs | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a5a640f..d542ed0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ and this project adheres to ## [Unreleased] +--- + +## [2.3.1] - 2024-10-09 + ### Changed - Use `opentelemetry_semantic_conventions` 1.x @@ -103,7 +107,9 @@ and this project adheres to recommended to also upgrade to OpenTelemetry API 1.1.0 in order to keep the opentelemetry log metadata. -[Unreleased]: https://github.com/primait/opentelemetry_absinthe/compare/2.3.0...HEAD + +[Unreleased]: https://github.com/primait/opentelemetry_absinthe/compare/2.3.1...HEAD +[2.3.1]: https://github.com/primait/opentelemetry_absinthe/compare/2.3.0...2.3.1 [2.3.0]: https://github.com/primait/opentelemetry_absinthe/compare/2.3.0-rc.0...2.3.0 [2.3.0-rc.0]: https://github.com/primait/opentelemetry_absinthe/compare/2.2.1...2.3.0-rc.0 [2.2.0]: https://github.com/primait/opentelemetry_absinthe/compare/2.2.0...2.2.1 diff --git a/mix.exs b/mix.exs index 018e892..7e58d9d 100644 --- a/mix.exs +++ b/mix.exs @@ -2,7 +2,7 @@ defmodule OpentelemetryAbsinthe.MixProject do use Mix.Project @source_url "https://github.com/primait/opentelemetry_absinthe" - @version "2.3.0" + @version "2.3.1" def project do [