From 38f4564df1c9711c636cd6758ef0259c45f00830 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Mon, 3 May 2021 17:41:31 -0600 Subject: [PATCH 1/3] API: bump RC version to 1.0.0-rc.2 --- apps/opentelemetry_api/VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/opentelemetry_api/VERSION b/apps/opentelemetry_api/VERSION index 9c218192..fedbd0b1 100644 --- a/apps/opentelemetry_api/VERSION +++ b/apps/opentelemetry_api/VERSION @@ -1 +1 @@ -1.0.0-rc.1 +1.0.0-rc.2 From 0dc1c6cd004b8aa7ef4f3936a021abed6a460a33 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Tue, 4 May 2021 09:18:01 -0600 Subject: [PATCH 2/3] add Ctx.t type to elixir api --- apps/opentelemetry_api/lib/open_telemetry/ctx.ex | 2 ++ apps/opentelemetry_api/lib/open_telemetry/tracer.ex | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/opentelemetry_api/lib/open_telemetry/ctx.ex b/apps/opentelemetry_api/lib/open_telemetry/ctx.ex index 635b8a3c..ed87c311 100644 --- a/apps/opentelemetry_api/lib/open_telemetry/ctx.ex +++ b/apps/opentelemetry_api/lib/open_telemetry/ctx.ex @@ -5,6 +5,8 @@ defmodule OpenTelemetry.Ctx do `OpenTelemetry.Baggage` handle updating the Context. """ + @type t() :: :otel_ctx.t() + defdelegate new(), to: :otel_ctx defdelegate attach(ctx), to: :otel_ctx defdelegate detach(token), to: :otel_ctx diff --git a/apps/opentelemetry_api/lib/open_telemetry/tracer.ex b/apps/opentelemetry_api/lib/open_telemetry/tracer.ex index f002b75b..c862d939 100644 --- a/apps/opentelemetry_api/lib/open_telemetry/tracer.ex +++ b/apps/opentelemetry_api/lib/open_telemetry/tracer.ex @@ -62,7 +62,7 @@ defmodule OpenTelemetry.Tracer do end @doc """ - Takes a `t:OpenTelemetry.ctx/0` and the `t:OpenTelemetry.span_ctx/0` and the Tracer sets + Takes a `t:OpenTelemetry.Ctx.t/0` and the `t:OpenTelemetry.span_ctx/0` and the Tracer sets it to the current span in the pass Context. """ def set_current_span(ctx, span_ctx) do From f62343d10ed2aa9d05491847afbefe6365f8aa92 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Tue, 4 May 2021 09:18:38 -0600 Subject: [PATCH 3/3] SDK: bump dependency on API to rc.2 --- apps/opentelemetry/rebar.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/opentelemetry/rebar.config b/apps/opentelemetry/rebar.config index b0b841bc..42bf3b12 100644 --- a/apps/opentelemetry/rebar.config +++ b/apps/opentelemetry/rebar.config @@ -1,2 +1,2 @@ {erl_opts, [debug_info]}. -{deps, [{opentelemetry_api, "~> 1.0.0-rc.1"}]}. +{deps, [{opentelemetry_api, "~> 1.0.0-rc.2"}]}.