add resource type to span attributes
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
openfgav1 "github.com/openfga/api/proto/openfga/v1"
|
||||
"github.com/openfga/language/pkg/go/transformer"
|
||||
"go.opentelemetry.io/otel"
|
||||
"go.opentelemetry.io/otel/attribute"
|
||||
"google.golang.org/grpc"
|
||||
"google.golang.org/protobuf/types/known/wrapperspb"
|
||||
|
||||
@@ -95,6 +96,7 @@ func (c *Client) Check(ctx context.Context, in *openfgav1.CheckRequest) (*openfg
|
||||
|
||||
func (c *Client) ListObjects(ctx context.Context, in *openfgav1.ListObjectsRequest) (*openfgav1.ListObjectsResponse, error) {
|
||||
ctx, span := tracer.Start(ctx, "authz.zanzana.client.ListObjects")
|
||||
span.SetAttributes(attribute.String("resource.type", in.Type))
|
||||
defer span.End()
|
||||
|
||||
in.StoreId = c.storeID
|
||||
|
||||
Reference in New Issue
Block a user