Publish process propagator v0.2.0 (#111)
* Publish process propagator v0.2.0 * Fix docs
This commit is contained in:
parent
b10af6e987
commit
da912fd08b
|
@ -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
|
||||
|
|
@ -27,20 +27,28 @@ defmodule OpentelemetryProcessPropagator.Task do
|
|||
require OpenTelemetry.Tracer
|
||||
alias OpentelemetryProcessPropagator.Task
|
||||
|
||||
def untraced_task do
|
||||
def traced_task_with_existing_span do
|
||||
Task.async(fn ->
|
||||
:ok
|
||||
end)
|
||||
|> Task.await()
|
||||
end
|
||||
|
||||
def traced_task do
|
||||
def traced_task_with_new_span do
|
||||
Task.async_with_span(:span_name, %{attributes: %{a: "b"}}, fn ->
|
||||
Tracer.set_attribute(:c, "d")
|
||||
:ok
|
||||
end)
|
||||
|> Task.await()
|
||||
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
|
||||
```
|
||||
"""
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{application, opentelemetry_process_propagator,
|
||||
[{description, "Tools for OpenTelemetry context propagation across process boundaries"},
|
||||
{vsn, "0.1.1"},
|
||||
{vsn, "0.2.0"},
|
||||
{registered, []},
|
||||
{applications,
|
||||
[kernel,
|
||||
|
|
Loading…
Reference in New Issue