Skip to content

Commit

Permalink
fix elixir trace_id/span_id types to reference the Erlang types
Browse files Browse the repository at this point in the history
  • Loading branch information
tsloughter committed May 18, 2023
1 parent 371b2cb commit faac95a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/opentelemetry_api/lib/open_telemetry.ex
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ defmodule OpenTelemetry do
the same `trace_id`. The ID is a 16-byte array. An ID with all zeroes
is considered invalid.
"""
@type trace_id() :: non_neg_integer()
@type trace_id() :: :opentelemetry.trace_id()

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

@type attribute_key() :: :opentelemetry.attribute_key()
@type attribute_value() :: :opentelemetry.attribute_value()
Expand Down

0 comments on commit faac95a

Please sign in to comment.