Skip to content

Commit 6623a3e

Browse files
authored
chore: Update docs about default span status (#1416)
chore: Update docs about default span status (#1416) In the SDK, this defaults to unset https://github.com/open-telemetry/opentelemetry-ruby/blob/48eb8367c2eee15cc59d4f83ee137a9b931695fc/sdk/lib/opentelemetry/sdk/trace/span.rb#L19. In spec, it also notes that default is unset: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#set-status. I don't think span status matters in the context of an API span, but this might reduce the chance of confusion.
1 parent 48eb836 commit 6623a3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/lib/opentelemetry/trace/span.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def record_exception(exception, attributes: nil); end
115115

116116
# Sets the Status to the Span
117117
#
118-
# If used, this will override the default Span status. Default is OK.
118+
# If used, this will override the default Span status. Default status is unset.
119119
#
120120
# Only the value of the last call will be recorded, and implementations
121121
# are free to ignore previous calls.

0 commit comments

Comments
 (0)