add span status method

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2023-01-18 09:48:58 +03:00
parent f76b3171d9
commit 7137d99102
4 changed files with 58 additions and 10 deletions

View File

@@ -29,6 +29,10 @@ type Span interface {
Context() context.Context
// SetName set the span name
SetName(name string)
// SetStatus set the span status code and msg
SetStatus(status SpanStatus, msg string)
// Status returns span status and msg
Status() (SpanStatus, string)
// SetLabels set the span labels
SetLabels(labels ...interface{})
// AddLabels append the span labels