Skip to content

Commit

Permalink
Fix OpenTelemetry.Tracer.end_span/1 return type spec
Browse files Browse the repository at this point in the history
  • Loading branch information
RudolfMan committed Nov 4, 2024
1 parent 0a38bd4 commit 30db7a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/opentelemetry_api/lib/open_telemetry/tracer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ defmodule OpenTelemetry.Tracer do
The Span in the current Context has its `is_recording` set to `false`.
"""
@spec end_span(:opentelemetry.timestamp() | :undefined) ::
:opentelemetry.span_ctx() | :undefined
@spec end_span(:opentelemetry.timestamp() | :undefined) :: :opentelemetry.span_ctx()
def end_span(timestamp \\ :undefined) do
non_recording_span = :otel_span.end_span(:otel_tracer.current_span_ctx(), timestamp)
_ = :otel_tracer.set_current_span(non_recording_span)
Expand Down

0 comments on commit 30db7a8

Please sign in to comment.