Publish process propagator v0.2.0 (#111)

* Publish process propagator v0.2.0

* Fix docs
This commit is contained in:
Bryan Naegele 2022-10-12 15:59:20 -06:00 committed by GitHub
parent b10af6e987
commit da912fd08b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 3 deletions

View File

@ -0,0 +1,13 @@
# Changelog
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).
## v0.2.0
### Added
- Conveniencies for the Task module

View File

@ -27,20 +27,28 @@ defmodule OpentelemetryProcessPropagator.Task do
require OpenTelemetry.Tracer require OpenTelemetry.Tracer
alias OpentelemetryProcessPropagator.Task alias OpentelemetryProcessPropagator.Task
def untraced_task do def traced_task_with_existing_span do
Task.async(fn -> Task.async(fn ->
:ok :ok
end) end)
|> Task.await() |> Task.await()
end end
def traced_task do def traced_task_with_new_span do
Task.async_with_span(:span_name, %{attributes: %{a: "b"}}, fn -> Task.async_with_span(:span_name, %{attributes: %{a: "b"}}, fn ->
Tracer.set_attribute(:c, "d") Tracer.set_attribute(:c, "d")
:ok :ok
end) end)
|> Task.await() |> Task.await()
end end
def traced_task_with_new_linked_span do
Task.async_with_linked_span(:span_name, %{attributes: %{a: "b"}}, fn ->
Tracer.set_attribute(:c, "d")
:ok
end)
|> Task.await()
end
end end
``` ```
""" """

View File

@ -1,6 +1,6 @@
{application, opentelemetry_process_propagator, {application, opentelemetry_process_propagator,
[{description, "Tools for OpenTelemetry context propagation across process boundaries"}, [{description, "Tools for OpenTelemetry context propagation across process boundaries"},
{vsn, "0.1.1"}, {vsn, "0.2.0"},
{registered, []}, {registered, []},
{applications, {applications,
[kernel, [kernel,