// annotate with gRPC response payload
if c.isDebug {
respMsg := s.Payload.(proto.Message)
payload, _ := protojson.Marshal(respMsg)
msgType := string(proto.MessageName(respMsg).Name())
span.SetAttributes(attribute.Key("rpc.response.payload").String(string(payload)))
span.SetAttributes(attribute.Key("rpc.response.type").String(msgType))
}
}
}