Skip to content

Commit

Permalink
Update error message to be more helpful
Browse files Browse the repository at this point in the history
  • Loading branch information
ahlaw committed Oct 6, 2020
1 parent 2664e4b commit c33530f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ class Span(trace_api.Span):

def __new__(cls, *args, **kwargs):
if cls is Span:
raise TypeError("Span cannot be instantiated directly")
raise TypeError("Span must be instantiated via a tracer.")
return super().__new__(cls)

def __init__(
Expand Down

0 comments on commit c33530f

Please sign in to comment.