Skip to content

Commit

Permalink
Publish process propagator v0.2.0 (open-telemetry#111)
Browse files Browse the repository at this point in the history
* Publish process propagator v0.2.0

* Fix docs
  • Loading branch information
bryannaegele authored Oct 12, 2022
1 parent b10af6e commit da912fd
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
13 changes: 13 additions & 0 deletions propagators/opentelemetry_process_propagator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

12 changes: 10 additions & 2 deletions propagators/opentelemetry_process_propagator/lib/task.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
"""
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit da912fd

Please sign in to comment.