We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f8e36a commit f608619Copy full SHA for f608619
2 files changed
aibtrace/aibtrace.go
@@ -37,6 +37,10 @@ func TraceInterceptionAttributesFromContext(ctx context.Context) []attribute.Key
37
}
38
39
func EndSpanErr(span trace.Span, err *error) {
40
+ if span == nil {
41
+ return
42
+ }
43
+
44
if err != nil && *err != nil {
45
span.SetStatus(codes.Error, (*err).Error())
46
interception.go
@@ -30,8 +30,7 @@ type Interceptor interface {
30
ProcessRequest(w http.ResponseWriter, r *http.Request) error
31
// Specifies whether an interceptor handles streaming or not.
32
Streaming() bool
33
-
34
- // TraceAttributes returns tacing attributes for this [Inteceptor]
+ // TraceAttributes returns tracing attributes for this [Interceptor]
35
TraceAttributes(context.Context) []attribute.KeyValue
36
0 commit comments