Skip to content

Commit 087f639

Browse files
committed
fix elixir trace_id/span_id types to reference the Erlang types
1 parent 371b2cb commit 087f639

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/opentelemetry_api/lib/open_telemetry.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ defmodule OpenTelemetry do
4444
the same `trace_id`. The ID is a 16-byte array. An ID with all zeroes
4545
is considered invalid.
4646
"""
47-
@type trace_id() :: non_neg_integer()
47+
@type trace_id() :: :opentelemetry.trace_id()
4848

4949
@typedoc """
5050
SpanId is a unique identifier for a span within a trace, assigned when the span
5151
is created. The ID is an 8-byte array. An ID with all zeroes is considered
5252
invalid.
5353
"""
54-
@type span_id() :: non_neg_integer()
54+
@type span_id() :: :opentelemetry.span_id()
5555

5656
@type attribute_key() :: :opentelemetry.attribute_key()
5757
@type attribute_value() :: :opentelemetry.attribute_value()

0 commit comments

Comments
 (0)