From 486177a372be9e5b0bd765304ec3285552c56636 Mon Sep 17 00:00:00 2001 From: Cristiano Piemontese Date: Fri, 27 May 2022 11:49:31 +0200 Subject: [PATCH] [PLATFORM-468]: [Opentelemetry] Traces are not working anymore (#18) --- CHANGELOG.md | 9 ++++++++- lib/prima_opentelemetry_ex.ex | 2 ++ mix.exs | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 76dfec2..f889c59 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Next] +## [1.0.1] - 2022-05-27 + +### Fixed + +- Add `Application.ensure_all_started(:opentelemetry)` + ## [1.0.0] - 2022-04-14 ### Changed @@ -82,7 +88,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Initial release -[Next]: https://github.com/primait/prima_opentelemetry_ex/compare/1.0.0...HEAD +[Next]: https://github.com/primait/prima_opentelemetry_ex/compare/1.0.1...HEAD +[1.0.1]: https://github.com/primait/prima_opentelemetry_ex/compare/1.0.0...1.0.1 [1.0.0]: https://github.com/primait/prima_opentelemetry_ex/compare/1.0.0-rc.4...1.0.0 [1.0.0-rc.4]: https://github.com/primait/prima_opentelemetry_ex/compare/1.0.0-rc.3...1.0.0-rc.4 [1.0.0-rc.3]: https://github.com/primait/prima_opentelemetry_ex/compare/1.0.0-rc.2...1.0.0-rc.3 diff --git a/lib/prima_opentelemetry_ex.ex b/lib/prima_opentelemetry_ex.ex index 85a9f53..3a6247b 100644 --- a/lib/prima_opentelemetry_ex.ex +++ b/lib/prima_opentelemetry_ex.ex @@ -17,7 +17,9 @@ defmodule PrimaOpentelemetryEx do set_resource() set_processor() instrument() + Application.ensure_all_started(:opentelemetry_exporter) + Application.ensure_all_started(:opentelemetry) end :ok diff --git a/mix.exs b/mix.exs index c638d1a..42158c4 100644 --- a/mix.exs +++ b/mix.exs @@ -2,7 +2,7 @@ defmodule PrimaOpentelemetryEx.MixProject do use Mix.Project @source_url "https://github.com/primait/prima_opentelemetry_ex" - @version "1.0.0" + @version "1.0.1" def project do [