Skip to content

Commit 7eeba0c

Browse files
committed
fix telemetry spec for start-state and end-state
1 parent 8f77ea4 commit 7eeba0c

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ The format is based on [Keep a
66
Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
77
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
88

9+
## 0.1.1 - 2021-02-03
10+
11+
### Fixed
12+
13+
- Fixed start-state and end-state keys for handle-type events
14+
915
## 0.1.0 - 2021-02-03
1016

1117
### Added

lib/slipstream/honeycomb/connection.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ defmodule Slipstream.Honeycomb.Connection do
7878
%Event{
7979
time: metadata.start_time,
8080
data: %{
81-
state: inspect(metadata.state),
81+
start_state: inspect(metadata.start_state),
82+
end_state: inspect(metadata.end_state),
8283
traceId: metadata.trace_id,
8384
parentId: metadata.connection_id,
8485
id: metadata.span_id,

test/slipstream/honeycomb/connection_test.exs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ defmodule Slipstream.Honeycomb.ConnectionTest do
4242
assert event.data.id == metadata.connection_id
4343

4444
metadata = %{
45-
state: %{},
45+
start_state: %{},
46+
end_state: %{},
4647
connection_id: "foo",
4748
span_id: "baz",
4849
trace_id: "bar",
@@ -63,7 +64,8 @@ defmodule Slipstream.Honeycomb.ConnectionTest do
6364
assert_receive {:send_event, event}
6465

6566
assert event.time == metadata.start_time
66-
assert event.data.state == "%{}"
67+
assert event.data.start_state == "%{}"
68+
assert event.data.end_state == "%{}"
6769
assert event.data.traceId == metadata.trace_id
6870
assert event.data.parentId == metadata.connection_id
6971
assert event.data.id == metadata.span_id

0 commit comments

Comments
 (0)